@@ -7,18 +7,14 @@ import { modifyPostRepresentativeStatusApi, deletePostApi } from '@apis/post';
77import { isPostRepresentativeAtom , postIdAtom , userAtom } from '@recoil/Post/PostAtom' ;
88import { getCurrentUserId } from '@utils/getCurrentUserId' ;
99
10- import back from '@assets/arrow/left.svg' ;
1110import Delete from '@assets/default/delete.svg' ;
1211import Edit from '@assets/default/edit.svg' ;
1312import Pin from '@assets/default/pin.svg' ;
1413
1514import BottomSheet from '@components/BottomSheet' ;
1615import BottomSheetMenu from '@components/BottomSheet/BottomSheetMenu' ;
1716import OptionsBottomSheet from '@components/BottomSheet/OptionsBottomSheet' ;
18- import { OODDFrame } from '@components/Frame/Frame' ;
1917import Modal from '@components/Modal' ;
20- import Skeleton from '@components/Skeleton' ;
21- import TopBar from '@components/TopBar/index' ;
2218
2319import type { BottomSheetMenuProps } from '@components/BottomSheet/BottomSheetMenu/dto' ;
2420import type { BottomSheetProps } from '@components/BottomSheet/dto' ;
@@ -27,8 +23,6 @@ import type { ModalProps } from '@components/Modal/dto';
2723
2824import PostBase from './PostBase/index' ;
2925
30- import { PicWrapper , NameWrapper , InfoWrapper , PostWrapper } from './styles' ;
31-
3226const Post : React . FC = ( ) => {
3327 const user = useRecoilValue ( userAtom ) ;
3428 const postId = useRecoilValue ( postIdAtom ) ;
@@ -43,8 +37,6 @@ const Post: React.FC = () => {
4337 const [ modalContent , setModalContent ] = useState ( '' ) ;
4438 const [ postPinStatus , setPostPinStatus ] = useState < '지정' | '해제' > ( '지정' ) ;
4539
46- const [ isLoading , setIsLoading ] = useState ( true ) ;
47-
4840 const navigate = useNavigate ( ) ;
4941 const currentUserId = getCurrentUserId ( ) ;
5042
@@ -99,7 +91,6 @@ const Post: React.FC = () => {
9991 if ( user ?. id && postId ) {
10092 setIsMyPost ( currentUserId === user . id ) ;
10193 }
102- setIsLoading ( false ) ;
10394 } , [ user , postId ] ) ;
10495
10596 useEffect ( ( ) => {
@@ -172,25 +163,6 @@ const Post: React.FC = () => {
172163 content : modalContent ,
173164 } ;
174165
175- if ( isLoading ) {
176- return (
177- < OODDFrame >
178- < TopBar LeftButtonSrc = { back } onClickLeftButton = { ( ) => navigate ( - 1 ) } />
179- < InfoWrapper >
180- < PicWrapper >
181- < Skeleton width = { 2.5 } height = { 2.5 } borderRadius = { 2.5 } />
182- </ PicWrapper >
183- < NameWrapper >
184- < Skeleton width = { 6.25 } height = { 1.25 } />
185- </ NameWrapper >
186- </ InfoWrapper >
187- < PostWrapper >
188- < Skeleton width = "100%" height = { 50 } />
189- </ PostWrapper >
190- </ OODDFrame >
191- ) ;
192- }
193-
194166 return (
195167 < >
196168 < PostBase onClickMenu = { handleMenuOpen } />
0 commit comments