|
1 | | -import React, { useState, useRef } from 'react'; |
| 1 | +import { useState, useRef } from 'react'; |
2 | 2 | import { useNavigate, useLocation } from 'react-router-dom'; |
3 | 3 |
|
| 4 | +import heic2any from 'heic2any'; |
4 | 5 | import { useRecoilState } from 'recoil'; |
| 6 | + |
5 | 7 | import { |
6 | 8 | postImagesAtom, |
7 | 9 | postContentAtom, |
8 | 10 | postClothingInfosAtom, |
9 | 11 | postStyletagAtom, |
10 | 12 | postIsRepresentativeAtom, |
11 | 13 | } from '@recoil/PostUpload/PostUploadAtom'; |
| 14 | +import { getCurrentUserId } from '@utils/getCurrentUserId'; |
12 | 15 |
|
13 | | -import { UploadContainer, ImageDragDropContainer, Content } from './styles'; |
| 16 | +import Left from '@assets/arrow/left.svg'; |
| 17 | +import PhotoBig from '@assets/default/photo-big.svg'; |
| 18 | +import X from '@assets/default/x.svg'; |
14 | 19 |
|
| 20 | +import BottomButton from '@components/BottomButton'; |
15 | 21 | import { OODDFrame } from '@components/Frame/Frame'; |
16 | 22 | import { StyledText } from '@components/Text/StyledText'; |
17 | 23 | import TopBar from '@components/TopBar'; |
18 | | -import BottomButton from '@components/BottomButton'; |
19 | | -import ImageSwiper from './ImageSwiper'; |
20 | | - |
21 | | -import X from '@assets/default/x.svg'; |
22 | | -import Left from '@assets/arrow/left.svg'; |
23 | | -import PhotoBig from '@assets/default/photo-big.svg'; |
24 | 24 |
|
25 | | -import { ImageSelectModalProps } from './dto'; |
26 | | -import heic2any from 'heic2any'; |
27 | | -import { getCurrentUserId } from '@utils/getCurrentUserId'; |
| 25 | +import ImageSwiper from './ImageSwiper'; |
| 26 | +import { UploadContainer, ImageDragDropContainer, Content } from './styles'; |
28 | 27 |
|
29 | | -const PostImageSelect: React.FC<ImageSelectModalProps> = () => { |
| 28 | +const PostImageSelect: React.FC = () => { |
30 | 29 | const [images, setImages] = useRecoilState(postImagesAtom); |
31 | 30 | const [, setContent] = useRecoilState(postContentAtom); |
32 | 31 | const [, setClothingInfos] = useRecoilState(postClothingInfosAtom); |
|
0 commit comments