Skip to content

Commit

Permalink
Removed TEXTS from TimeSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
amabelleS committed Dec 10, 2023
1 parent 7198422 commit 34ba90f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/components/TimeSelector.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { TEXTS } from 'src/resources/texts'
import { useTranslation } from 'react-i18next'
import { TimePicker, renderTimeViewClock } from '@mui/x-date-pickers'
import { DataAndTimeSelectorProps } from './utils/dateAndTime'

export function TimeSelector({ time, onChange }: DataAndTimeSelectorProps) {
const { t } = useTranslation()
return (
<TimePicker
sx={{ width: '100%' }}
label={TEXTS.choose_time}
label={t('choose_time')}
value={time}
onChange={(ts) => onChange(ts!)}
ampm={false}
Expand Down

0 comments on commit 34ba90f

Please sign in to comment.