Skip to content

Commit

Permalink
Use Ant Design v4 theming for now so theming can be done in a new PR
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbollinger committed Oct 15, 2023
1 parent 27f86ee commit 2c4ef6f
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 5 deletions.
187 changes: 183 additions & 4 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"format": "prettier --write **/*.{js,ts,jsx,tsx,css,md}"
},
"dependencies": {
"@ant-design/compatible": "^5.1.2",
"@ant-design/icons": "4.8.1",
"@codemirror/lang-css": "6.2.1",
"@codemirror/lang-html": "^6.4.2",
Expand Down
6 changes: 5 additions & 1 deletion web/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { AppProps } from 'next/app';
import { ReactElement, ReactNode } from 'react';
import { NextPage } from 'next';
import { RecoilRoot } from 'recoil';
import { defaultTheme } from '@ant-design/compatible';
import { ConfigProvider } from 'antd';

export type NextPageWithLayout<P = {}, IP = P> = NextPage<P, IP> & {
getLayout?: (page: ReactElement) => ReactNode;
Expand All @@ -28,7 +30,9 @@ export default function App({ Component, pageProps }: AppPropsWithLayout) {

return layout(
<RecoilRoot>
<Component {...pageProps} />
<ConfigProvider theme={defaultTheme}>
<Component {...pageProps} />
</ConfigProvider>
</RecoilRoot>,
);
}

0 comments on commit 2c4ef6f

Please sign in to comment.