Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { CSSProperties } from 'react';

export const formatMonth = (month: number) => {
return String(month).padStart(2, '0');
}
Expand All @@ -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})`,
};
Expand Down
10 changes: 5 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
}
}
},
})
});