File tree Expand file tree Collapse file tree
features/topics/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ type ConfirmedHeaderProps = {
2323 confirmedTopic : boolean
2424 confirmedTopicDate : string | null
2525 progressStatus : MeetingProgressStatus
26+ gatheringId : number
27+ meetingId : number
2628}
2729
2830type TopicHeaderProps = ProposedHeaderProps | ConfirmedHeaderProps
@@ -114,7 +116,11 @@ export default function TopicHeader(props: TopicHeaderProps) {
114116
115117 < div className = "flex gap-xsmall" >
116118 { props . actions . canViewPreOpinions ? (
117- < Button variant = "secondary" outline >
119+ < Button
120+ variant = "secondary"
121+ outline
122+ onClick = { ( ) => navigate ( ROUTES . PRE_OPINIONS ( props . gatheringId , props . meetingId ) ) }
123+ >
118124 사전 의견 확인하기
119125 </ Button >
120126 ) : (
@@ -132,7 +138,14 @@ export default function TopicHeader(props: TopicHeaderProps) {
132138 ) }
133139
134140 { props . progressStatus !== 'POST' && (
135- < Button disabled = { ! props . actions . canWritePreOpinions } > 사전 의견 작성하기</ Button >
141+ < Button
142+ disabled = { ! props . actions . canWritePreOpinions }
143+ onClick = { ( ) =>
144+ navigate ( ROUTES . PRE_OPINION_WRITE ( props . gatheringId , props . meetingId ) )
145+ }
146+ >
147+ 사전 의견 작성하기
148+ </ Button >
136149 ) }
137150 </ div >
138151 </ div >
Original file line number Diff line number Diff line change @@ -219,6 +219,8 @@ export default function MeetingDetailPage() {
219219 actions = { confirmedTopicsInfiniteData . pages [ 0 ] . actions }
220220 confirmedTopicDate = { meeting ?. confirmedTopicDate ?? null }
221221 progressStatus = { meeting ?. progressStatus ?? 'PRE' }
222+ gatheringId = { gatheringId }
223+ meetingId = { meetingId }
222224 />
223225 < ConfirmedTopicList
224226 topics = { confirmedTopicsInfiniteData . pages . flatMap (
You can’t perform that action at this time.
0 commit comments