Skip to content

Commit

Permalink
refactor: 레이싱 대시보드 props -> racing socket hook return type 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
nim-od committed Aug 15, 2024
1 parent 4c9f5b9 commit 036846d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/user/src/components/event/racing/dashboard/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { CATEGORIES } from '@softeer/common/constants';
import type { Category } from '@softeer/common/types';
import { Suspense } from 'react';
import type { RankStatus } from 'src/types/racing.d.ts';
import { UseRacingSocketReturnType } from 'src/hooks/socket/useRacingSocket.ts';
import Background from './Background.tsx';
import RacingCard from './card/index.tsx';
import Casper from './Casper.tsx';
import RacingTitle from './RacingTitle.tsx';
import EventTimer from './timer/index.tsx';

interface RacingDashboardProps {
ranks: RankStatus;
interface RacingDashboardProps extends Pick<UseRacingSocketReturnType, 'ranks'> {
chargedCar: Category | null;
}

Expand Down

0 comments on commit 036846d

Please sign in to comment.