Skip to content

Commit 5e49999

Browse files
committed
feat: comment qa (#develop)
1 parent 325a6c9 commit 5e49999

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

services/ahhachul.com/src/components/domain/home/stations/trainRealTimes/TrainRealTimes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const TrainRealTimes = ({ stationName, stationId, subwayLineId }: TrainRealTimes
3131
<div css={S.inner}>
3232
<div css={S.thickBorder(subwayLineId)}>
3333
<div css={S.stationName(subwayLineId)}>{stationName}</div>
34-
<span>{nextStationDirection}</span>
34+
<span>{nextStationDirection?.replace('방면', ' 방면')}</span>
3535
</div>
3636
<div css={S.trainInfos}>
3737
<div css={S.currentTrainArrivalInfo}>

services/ahhachul.com/src/pages/auth/callback.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { LayoutComponent, UiComponent } from '@/components';
77
import { useAuth } from '@/contexts';
88
import { useFlow } from '@/stackflow';
99
import { useTempAuth } from '@/stores';
10+
import { useUserStationStore } from '@/stores/subway';
1011
import type { SocialSignInType } from '@/types';
1112

1213
interface SignInCallbackPageProps {
@@ -48,7 +49,19 @@ const SignInCallbackPage: ActivityComponentType<SignInCallbackPageProps> = ({
4849
}
4950

5051
authService.signIn({ accessToken, refreshToken });
51-
replace('HomePage', {}, { animate: false });
52+
53+
try {
54+
const userStations = await api.fetchUserFavoriteStations();
55+
if (userStations.result.stationInfoList.length > 0) {
56+
useUserStationStore.setState({
57+
stations: userStations.result.stationInfoList,
58+
});
59+
}
60+
} catch (error) {
61+
console.error(error);
62+
} finally {
63+
replace('HomePage', {}, { animate: false });
64+
}
5265
} catch (error) {
5366
console.error(error);
5467
replace('SignInPage', {});

services/ahhachul.com/src/pages/comment/[commentId]/edit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ const EditCommentPage: ActivityComponentType<
9393
actionLabel="수정"
9494
showIsPrivateBtn
9595
shouldFocusOnMount
96-
disablePrivateCheck
9796
onSubmit={editComment}
9897
initialState={targetComment.content}
98+
disablePrivateCheck={targetComment.isPrivate}
9999
/>
100100
<Padding />
101101
</LayoutComponent.Base>

services/ahhachul.com/src/pages/comment/[commentId]/reply.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ const NewCommentReplyPage: ActivityComponentType<
105105
<CommentInput
106106
showIsPrivateBtn
107107
shouldFocusOnMount
108-
disablePrivateCheck
109108
onSubmit={submitComment}
110-
placeholder={`${targetComment?.writer} 남에게 답글을 남겨주세요.`}
109+
disablePrivateCheck={targetComment.isPrivate}
110+
placeholder={`${targetComment?.writer} 님에게 답글을 남겨주세요.`}
111111
/>
112112
<Padding />
113113
</LayoutComponent.Base>

0 commit comments

Comments
 (0)