Skip to content

Commit

Permalink
fix(mobile): make byhour filter like others
Browse files Browse the repository at this point in the history
  • Loading branch information
shootermv committed Oct 30, 2023
1 parent 22df36e commit 12dd91e
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions src/pages/dashboard/DashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,40 +83,35 @@ const DashboardPage = () => {
sx={{ marginTop: '20px' }}
justifyContent="space-between">
<Grid lg={6} xs={12} container spacing={2} alignItems="center">
<Grid xs={4.5}>
<Grid xs={4}>
<DateSelector
time={startDate}
onChange={(data) => setStartDate(data)}
customLabel={TEXTS.start}
/>
</Grid>
<Grid xs={0.1}>-</Grid>
<Grid xs={4.5}>
<Grid xs={1}>-</Grid>
<Grid xs={4}>
<DateSelector
time={endDate}
onChange={(data) => setEndDate(data)}
customLabel={TEXTS.end}
/>
</Grid>
<Grid xs={1}>
<FormControlLabel
control={
<Grid xs={3}>
<div style={{ display: 'flex', flexDirection: 'column' }}>
<div style={{ fontSize: '0.7rem', textAlign: 'center' }}>
{TEXTS.group_by_hour_tooltip_content}
</div>
<div style={{ display: 'flex', justifyContent: 'center' }}>
<Switch checked={groupByHour} onChange={(e) => setGroupByHour(e.target.checked)} />
}
label={TEXTS.group_by_hour_tooltip_content}
/>
</div>
</div>
</Grid>
</Grid>
<Grid lg={1} display={{ xs: 'none', lg: 'block' }}>
<Label text={TEXTS.choose_operator} />
</Grid>
<Grid lg={5} display={{ xs: 'none', lg: 'block' }}>
<OperatorSelector
operatorId={operatorId}
setOperatorId={setOperatorId}
onlyMajorOperators
/>
</Grid>
</Grid>
<Grid container spacing={2} alignItems="flex-start">
<Grid xs={12} lg={6}>
Expand Down

0 comments on commit 12dd91e

Please sign in to comment.