@@ -26,7 +26,7 @@ import pin from '../../../assets/Upload/pin.svg';
2626import next from '../../../assets/Upload/next.svg' ;
2727import next_up from '../../../assets/Upload/next_up.svg' ;
2828import { PostUploadModalProps , ClothingInfo } from '../dto' ;
29- import { Styletag , Post } from './dto' ;
29+ import { Styletag , Post , SearchBottomSheetProps } from './dto' ;
3030import { ref , uploadBytes , getDownloadURL } from 'firebase/storage' ;
3131import { storage } from '../firebaseConfig' ;
3232import request , { BaseResponse } from '../../../apis/core' ;
@@ -90,7 +90,7 @@ const PostUploadModal: React.FC<PostUploadModalProps> = ({
9090 setClothingInfos ( deletedClothingInfo ) ;
9191 } ;
9292
93- const bottomSheetProps : BottomSheetProps = {
93+ const bottomSheetProps : BottomSheetProps < SearchBottomSheetProps > = {
9494 isOpenBottomSheet : isSearchBottomSheetOpen ,
9595 isHandlerVisible : false ,
9696 Component : SearchBottomSheetContent ,
@@ -124,11 +124,13 @@ const PostUploadModal: React.FC<PostUploadModalProps> = ({
124124 console . log ( 2 ) ;
125125 const storageRef = ref ( storage , `ootd/images/${ Date . now ( ) } ` ) ;
126126 console . log ( 3 ) ;
127- await uploadBytes ( storageRef , blob ) . then ( ( ) => {
128- console . log ( "success" )
129- } ) . catch ( ( error ) => {
130- console . log ( JSON . stringify ( error ) )
131- } ) ;
127+ await uploadBytes ( storageRef , blob )
128+ . then ( ( ) => {
129+ console . log ( 'success' ) ;
130+ } )
131+ . catch ( ( error ) => {
132+ console . log ( JSON . stringify ( error ) ) ;
133+ } ) ;
132134 console . log ( 4 ) ;
133135 return getDownloadURL ( storageRef ) ;
134136 } ;
0 commit comments