Align show picked checkbox with filter controls

This commit is contained in:
beatz174-bit
2025-11-23 14:35:09 +10:00
parent 583633ff12
commit b340e77530
+29 -19
View File
@@ -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>