File tree 2 files changed +12
-11
lines changed
2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -149,14 +149,9 @@ function LandingPage() {
149
149
{ user ? (
150
150
< >
151
151
< TextContainer className = "main" >
152
- < SubTitleText > 우리 가족 생활비를 위한 </ SubTitleText >
153
- < TitleText > 물가 관리</ TitleText >
152
+ < SubTitleText > `$ { user . name } `님 안녕하세요 </ SubTitleText >
153
+ < TitleText > 우리 가족 생활비를 위한 물가 관리</ TitleText >
154
154
< SubText > { subtext } </ SubText >
155
- < Button
156
- className = "yellow"
157
- title = "KU_PRICESNAP 사용하러 가기"
158
- onClick = { navigate ( "/search" ) }
159
- />
160
155
</ TextContainer >
161
156
< UserContainer >
162
157
< TextContainer className = "sub" >
@@ -195,7 +190,7 @@ function LandingPage() {
195
190
< Button
196
191
title = "장바구니 수정하기"
197
192
className = "yellow"
198
- onClick = { navigate ( "/shopping" ) }
193
+ onClick = { ( ) => navigate ( "/shopping" ) }
199
194
/>
200
195
</ UserContainer >
201
196
</ >
@@ -205,7 +200,11 @@ function LandingPage() {
205
200
< SubTitleText > 우리 가족 생활비를 위한</ SubTitleText >
206
201
< TitleText > 물가 관리</ TitleText >
207
202
< SubText > { subtext } </ SubText >
208
- < Button className = "yellow" title = "KU_PRICESNAP 사용하러 가기" />
203
+ < Button
204
+ className = "yellow"
205
+ title = "KU_PRICESNAP 사용하러 가기"
206
+ onClick = { ( ) => navigate ( "/login" ) }
207
+ />
209
208
</ TextContainer >
210
209
</ >
211
210
) }
Original file line number Diff line number Diff line change @@ -36,8 +36,10 @@ function LoginPage() {
36
36
e . preventDefault ( ) ;
37
37
try {
38
38
await login ( id , password ) ;
39
- navigate ( "/" ) ;
40
- } catch ( err ) { }
39
+ navigate ( "/" , { replace : true } ) ;
40
+ } catch ( err ) {
41
+ console . error ( "로그인 실패:" , err ) ;
42
+ }
41
43
} ;
42
44
43
45
return (
You can’t perform that action at this time.
0 commit comments