diff --git a/src/utils/utils.ts b/src/utils/utils.ts index fe09c9b..c8eb097 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -1,3 +1,5 @@ +import type { CSSProperties } from 'react'; + export const formatMonth = (month: number) => { return String(month).padStart(2, '0'); } @@ -9,7 +11,7 @@ export const isUUID = (uuid: string): boolean => { }; // 배경 이미지 스타일 반환 -export const setBackgroundImage = (url: string): React.CSSProperties => { +export const setBackgroundImage = (url: string): CSSProperties => { return { backgroundImage: `url(${url})`, }; diff --git a/vite.config.ts b/vite.config.ts index ac86d43..2f9283c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,6 +1,6 @@ -import path from 'node:path'; -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import path from 'path'; +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react'; // https://vite.dev/config/ export default defineConfig({ @@ -8,6 +8,6 @@ export default defineConfig({ resolve: { alias: { '@': path.resolve(__dirname, 'src'), - } + } }, -}) \ No newline at end of file +});