Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/modules/SelsoDetail/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default ({ selsoDetail }) => {
<div className={styles.nicknameWrapper}>
<div className={styles.nickname}>{selsoDetail.nickname}</div>
<div className={styles.age}>
{selsoDetail.age}
{selsoDetail.profile?.bornYear}
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/modules/SelsoList/SelsoList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ const SelsoList = inject('selsoListStore', 'userStore')(observer(({ selsoListSto

if (selsoItem.isViewed) {
history.push('selso/detail');
window.scrollTo(0, 0);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 list page에서 scroll to 해도 작동하나요??

detail page에서 mount 될 때 하는게 낫지 않을까요??

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이게 시즌3할 때는 이렇게 했는데 mount 될 때 올리는게 더 깔끔하겠다!
웹으로는 무조건 올라가서 확인은 배포하고 모바일해서 켜보고 해봐야할듯

} else {
setIsOpenSpendPointModal(true);
}
};

const spendPointAndMoveToDetailPage = () => {
history.push('selso/detail');
window.scrollTo(0, 0);
};

return (
Expand Down