diff --git a/src/components/Event/EventCarpools.tsx b/src/components/Event/EventCarpools.tsx index 6259481..61557fd 100644 --- a/src/components/Event/EventCarpools.tsx +++ b/src/components/Event/EventCarpools.tsx @@ -1,21 +1,12 @@ -import CallMergeIcon from '@material-ui/icons/CallMerge'; +// import CallMergeIcon from '@material-ui/icons/CallMerge'; import EmojiPeopleIcon from '@material-ui/icons/EmojiPeople'; -import ScheduleIcon from '@material-ui/icons/Schedule'; +// import ScheduleIcon from '@material-ui/icons/Schedule'; import { useState } from 'react'; import { lightgrey } from '../colors'; +import { ICarpool } from '../types'; import UIButton from '../UI/UIButton'; import { IEvent } from './Event'; -export type ICarpool = { - driver: { - id: number; - name: string; - }; - startTime: string; - endTime: string; - extraDistance: number; -}; - function CarpoolRow({ carpool }: { carpool: ICarpool }) { const PADDING = '1rem'; return ( @@ -32,20 +23,22 @@ function CarpoolRow({ carpool }: { carpool: ICarpool }) { marginBottom: '0.5rem', }} > -