Skip to content

Commit f948c9f

Browse files
committed
페이지 뒤로가기시 스크롤 위치 보존하도록 Link 임시 제거
1 parent be5e305 commit f948c9f

File tree

1 file changed

+13
-16
lines changed

1 file changed

+13
-16
lines changed

frontend/components/service/Program/CategoryListItem.tsx

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import styled from 'styled-components'
33
import { ITalkItem } from '../../../interfaces/IProgram'
44
import { media } from '../../../assets/styles/mixin'
55
import { Heading4 } from '../../../assets/styles/typo'
6-
import Link from 'next/link'
76
import { DEFAULT_PROFILE_PATH } from '../../../data/constants/config'
87

98
const TalkList = styled.ul`
@@ -17,7 +16,7 @@ const TalkListItem = styled.li`
1716
`)}
1817
}
1918
`
20-
const TalkLink = styled(Link)`
19+
const TalkLink = styled.a`
2120
display: block;
2221
`
2322
const TalkBlock = styled.div`
@@ -50,20 +49,18 @@ const CategoryListItem = (props: { list: ITalkItem[] }) => {
5049
{props.list.map((talk, index) => (
5150
<TalkListItem key={talk.id}>
5251
<TalkLink href={`/program/talks/${talk.id}`}>
53-
<a>
54-
<TalkBlock>
55-
<SpeakerProfile
56-
image={
57-
talk.speaker_profile_img ??
58-
DEFAULT_PROFILE_PATH
59-
}
60-
/>
61-
<PersonBlock>
62-
<Title>{talk.title}</Title>
63-
<Speaker>{talk.user_name}</Speaker>
64-
</PersonBlock>
65-
</TalkBlock>
66-
</a>
52+
<TalkBlock>
53+
<SpeakerProfile
54+
image={
55+
talk.speaker_profile_img ??
56+
DEFAULT_PROFILE_PATH
57+
}
58+
/>
59+
<PersonBlock>
60+
<Title>{talk.title}</Title>
61+
<Speaker>{talk.user_name}</Speaker>
62+
</PersonBlock>
63+
</TalkBlock>
6764
</TalkLink>
6865
</TalkListItem>
6966
))}

0 commit comments

Comments
 (0)