diff --git a/frontend/src/b/shareCards.tsx b/frontend/src/b/shareCards.tsx index 4623917..91fb9d0 100644 --- a/frontend/src/b/shareCards.tsx +++ b/frontend/src/b/shareCards.tsx @@ -1,5 +1,6 @@ import type { Ref } from 'react' import { createPortal } from 'react-dom' +import { cx } from '../lib/utils' import type { TopIndex } from '../api/client/types.gen' import { MEDALS, type TimeKind } from './lib' import { Ic } from './ui' @@ -24,11 +25,11 @@ export type DayShare = { gak?: { name: string; icon: string } | null } -function DayLabel({ d }: { d: DayShare }) { +function DayLabel({ d, size }: { d: DayShare; size: string }) { return ( - + {d.label} - {d.now && 지금} + {d.now && 지금} ) } @@ -39,19 +40,21 @@ export function DayShareCard({ days, ref }: { days: DayShare[]; ref: Ref
{days.map((d) => ( -
- - - - {d.temp} +
+ + + + + {d.temp} + - - {d.gak && } - {d.gak?.name ?? '쉬어 가요'} + + {d.gak && } + {d.gak?.name ?? '쉬어 가요'} - {d.score ?? '–'} - 날씨 점수 + {d.score ?? '–'} + 날씨 점수
))} @@ -68,19 +71,19 @@ export function DayShareGrid({ days, ref }: { days: DayShare[]; ref: Ref (
- - - + + + {d.temp} - - {d.score ?? '–'} - 날씨 점수 + + {d.score ?? '–'} + 날씨 점수 - {d.gak && } - {d.gak?.name ?? '쉬어 가요'} + {d.gak && } + {d.gak?.name ?? '쉬어 가요'}
))}