Skip to content

Commit

Permalink
feat: reload when lookbook created
Browse files Browse the repository at this point in the history
  • Loading branch information
GanghyeonSeo committed Jun 6, 2024
1 parent fa9bd23 commit afb77e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ function MainPage() {
}, [user, userInfo]);

const renderTodayLookBook = () => {
console.log(lookBookData);
if (!lookBookData) {
return (
<Container
Expand Down Expand Up @@ -151,6 +150,7 @@ function MainPage() {
area: { province, city, district },
TPO: selectedTPO,
});
window.location.reload();
} catch (err: any) {
setError(
'Failed to create look book: ' +
Expand Down Expand Up @@ -184,7 +184,7 @@ function MainPage() {
<LoadingOverlay visible={loading} />
<Grid>
<Box style={{ width: '50%' }}>
<h1 style={{ textAlign: 'center' }}>Welcome to the Main Page</h1>
<h1 style={{ textAlign: 'center' }}>나의 메인 페이지</h1>
<p style={{ textAlign: 'center' }}>가장 최근 생성한 나의 LookBook</p>
{renderTodayLookBook()}
</Box>
Expand Down

0 comments on commit afb77e0

Please sign in to comment.