Skip to content

Commit 9262a90

Browse files
committed
Fix: recoil 등 기타 파일 import문 수정
1 parent fb14bee commit 9262a90

9 files changed

Lines changed: 22 additions & 11 deletions

File tree

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@ module.exports = {
105105
},
106106
},
107107
],
108-
ignorePatterns: ['src/**/*.test.ts', 'src/frontend/generated/*'],
108+
ignorePatterns: ['src/**/*.test.ts', 'src/frontend/generated/*', 'src/App.tsx'],
109109
};

src/apis/util/handleError.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { AxiosError } from 'axios';
2+
23
import { ApiDomain, errorMessages } from './errorMessage';
34

45
export const handleError = (error: unknown, domain: ApiDomain = 'default') => {

src/main.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
import ReactDOM from 'react-dom/client';
2-
import App from './App.tsx';
3-
import { ThemeProvider } from 'styled-components';
4-
import theme from './styles/theme';
5-
import GlobalStyle from './styles/GlobalStyles';
1+
import { createRoot } from 'react-dom/client';
62
import { RecoilRoot } from 'recoil';
7-
import './styles/fonts/font.css';
8-
import { SocketProvider } from './context/SocketProvider.tsx';
3+
import { ThemeProvider } from 'styled-components';
4+
5+
import GlobalStyle from '@styles/GlobalStyles';
6+
import theme from '@styles/theme';
7+
8+
import '@styles/fonts/font.css';
9+
import { SocketProvider } from '@context/SocketProvider';
10+
11+
import App from './App';
912

10-
ReactDOM.createRoot(document.getElementById('root')!).render(
13+
createRoot(document.getElementById('root')!).render(
1114
<ThemeProvider theme={theme}>
1215
<GlobalStyle />
1316
<RecoilRoot>

src/recoil/Chats/AllMessages.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { atom } from 'recoil';
2+
23
import type { chatRoomMessagesData } from '@apis/chatting/dto';
34

45
export const AllMesagesAtom = atom<chatRoomMessagesData[] | []>({

src/recoil/Post/PostAtom.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { atom } from 'recoil';
2+
23
import type { User } from '@apis/post/dto';
34

45
export const postIdAtom = atom<number>({

src/recoil/Post/PostCommentAtom.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { atom } from 'recoil';
2+
23
import type { Comment } from '@apis/post-comment/dto';
34

45
export const IsCommentDeleteConfirmationModalOpenAtom = atom<boolean>({

src/recoil/PostUpload/PostUploadAtom.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { atom } from 'recoil';
2-
import type { ClothingInfo } from '@components/ClothingInfoItem/dto';
2+
33
import type { PostImage } from '@apis/post/dto';
4+
import type { ClothingInfo } from '@components/ClothingInfoItem/dto';
45

56
export const postImagesAtom = atom<PostImage[]>({
67
key: 'imagesAtom',

src/recoil/ProfileViewer/userDetailsAtom.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { atom } from 'recoil';
2-
import type { UserInfoData } from '@apis/user/dto';
2+
33
import imageBasic from '@assets/default/defaultProfile.svg';
44

5+
import type { UserInfoData } from '@apis/user/dto';
6+
57
type BasicUserInfo = Pick<UserInfoData, 'id' | 'nickname' | 'bio' | 'isFriend' | 'profilePictureUrl'>;
68

79
export const UserInfoAtom = atom<BasicUserInfo | null>({

src/recoil/util/OtherUser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { atom } from 'recoil';
22
import { recoilPersist } from 'recoil-persist';
3+
34
import type { OtherUserDto } from '@apis/chatting/dto';
45

56
const { persistAtom } = recoilPersist();

0 commit comments

Comments
 (0)