Skip to content

Commit

Permalink
Feat: Add close modal when submit
Browse files Browse the repository at this point in the history
  • Loading branch information
psh320 committed Jun 20, 2022
1 parent 3b58322 commit 70b182a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modal/ReviewModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const ReviewModal: FC<ReviewModalProps> = ({visible, closeReviewModal, storeId})
const submitReview = () => {
//post 리뷰
//review content, image...
closeReviewModal();
};
return (
<Modal visible={visible} animationType="fade">
Expand Down Expand Up @@ -55,7 +56,7 @@ const ReviewModal: FC<ReviewModalProps> = ({visible, closeReviewModal, storeId})
) : (
<ReviewWrite
name={'마라탕'}
submitReview={() => {}}
submitReview={submitReview}
setRating={setRating}
rating={rating}
imageUri={imageUri}
Expand Down

0 comments on commit 70b182a

Please sign in to comment.