Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit f59b4fe

Browse files
committed
antd 버전 업데이트 추가 처리
1 parent 7687033 commit f59b4fe

File tree

4 files changed

+271
-212
lines changed

4 files changed

+271
-212
lines changed

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Suspense } from 'react';
22
import { createRoot } from 'react-dom/client';
33

4+
import 'antd/dist/reset.css';
45
import dayjs from 'dayjs';
56
import 'dayjs/locale/ko';
67
import relativeTime from 'dayjs/plugin/relativeTime';

src/pages/_app.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import Titlebar from '~/components/Titlebar';
1010
import { configStore } from '~/stores/config';
1111
import { updateStore } from '~/stores/update';
1212
import { InitGlobalStyled } from '~/styles/init';
13-
import { antdTheme, darkTheme, lightTheme, sizes } from '~/styles/themes';
13+
import { antdTheme, colors, sizes } from '~/styles/themes';
1414

1515
type Sizes = typeof sizes;
16-
type Colors = typeof lightTheme;
16+
type Colors = typeof colors;
1717

1818
declare module 'styled-components' {
1919
export interface DefaultTheme {
@@ -54,7 +54,7 @@ const AppInner = () => {
5454
const styledTheme = useMemo(
5555
() => ({
5656
sizes: sizes,
57-
colors: config.general.theme === 'light' ? lightTheme : darkTheme,
57+
colors: colors,
5858
token: antdToken.token,
5959
}),
6060
[config.general.theme],
@@ -70,6 +70,7 @@ const AppInner = () => {
7070

7171
<div id="app">
7272
<Titlebar />
73+
7374
<Layout>
7475
<Outlet />
7576
</Layout>

0 commit comments

Comments
 (0)