Align show picked checkbox with filter controls
This commit is contained in:
@@ -198,30 +198,40 @@ export const ActivePickListScreen = () => {
|
|||||||
<Typography variant="caption" color="text.secondary">
|
<Typography variant="caption" color="text.secondary">
|
||||||
Selecting a product immediately adds it to the pick list.
|
Selecting a product immediately adds it to the pick list.
|
||||||
</Typography>
|
</Typography>
|
||||||
<FormControlLabel
|
|
||||||
control={
|
|
||||||
<Checkbox
|
|
||||||
checked={showPicked}
|
|
||||||
onChange={(event) => setShowPicked(event.target.checked)}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
label="Show picked"
|
|
||||||
/>
|
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Typography variant="subtitle2" color="text.secondary" sx={{ mb: 0.5 }}>
|
<Typography variant="subtitle2" color="text.secondary" sx={{ mb: 0.5 }}>
|
||||||
Filter list by packaging
|
Filter list by packaging
|
||||||
</Typography>
|
</Typography>
|
||||||
<RadioGroup
|
<Stack
|
||||||
row
|
direction="row"
|
||||||
value={itemFilter}
|
alignItems="center"
|
||||||
onChange={(event) =>
|
justifyContent="space-between"
|
||||||
setItemFilter(event.target.value as 'all' | 'cartons' | 'units')
|
flexWrap="wrap"
|
||||||
}
|
rowGap={1}
|
||||||
>
|
>
|
||||||
<FormControlLabel value="all" control={<Radio />} label="All" />
|
<RadioGroup
|
||||||
<FormControlLabel value="cartons" control={<Radio />} label="Cartons" />
|
row
|
||||||
<FormControlLabel value="units" control={<Radio />} label="Units" />
|
value={itemFilter}
|
||||||
</RadioGroup>
|
onChange={(event) =>
|
||||||
|
setItemFilter(event.target.value as 'all' | 'cartons' | 'units')
|
||||||
|
}
|
||||||
|
sx={{ flexGrow: 1 }}
|
||||||
|
>
|
||||||
|
<FormControlLabel value="all" control={<Radio />} label="All" />
|
||||||
|
<FormControlLabel value="cartons" control={<Radio />} label="Cartons" />
|
||||||
|
<FormControlLabel value="units" control={<Radio />} label="Units" />
|
||||||
|
</RadioGroup>
|
||||||
|
<FormControlLabel
|
||||||
|
control={
|
||||||
|
<Checkbox
|
||||||
|
checked={showPicked}
|
||||||
|
onChange={(event) => setShowPicked(event.target.checked)}
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
label="Show picked"
|
||||||
|
sx={{ ml: { xs: 0, sm: 2 } }}
|
||||||
|
/>
|
||||||
|
</Stack>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
Reference in New Issue
Block a user