fix: MetalCard onClick 미전달 문제 수정
MetalCard가 onClick/sx props를 받지 않아 클릭 이벤트가 전달되지 않던 문제. 세션 카드와 템플릿 선택 카드를 Box로 감싸서 onClick 처리.
This commit is contained in:
parent
2b17bf47b7
commit
55774b64e0
4 changed files with 22 additions and 12 deletions
|
|
@ -220,11 +220,12 @@ export function MeetingModePage(): React.ReactElement {
|
|||
) : (
|
||||
<Box sx={{ display: 'flex', flexDirection: 'column', gap: 1.5 }}>
|
||||
{sessions.map((session) => (
|
||||
<MetalCard
|
||||
<Box
|
||||
key={session.id}
|
||||
sx={{ cursor: 'pointer', '&:hover': { opacity: 0.85 } }}
|
||||
onClick={() => handleViewDetail(session.id)}
|
||||
sx={{ cursor: 'pointer', '&:hover': { opacity: 0.85 } }}
|
||||
>
|
||||
<MetalCard>
|
||||
<Box sx={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<Box>
|
||||
<PhosphorText variant="label">
|
||||
|
|
@ -258,6 +259,7 @@ export function MeetingModePage(): React.ReactElement {
|
|||
</Box>
|
||||
)}
|
||||
</MetalCard>
|
||||
</Box>
|
||||
))}
|
||||
</Box>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue