mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
fix: update 'Select all' label to be more descriptive
This commit is contained in:
parent
698c6a0564
commit
f0e576f28f
@ -37,7 +37,7 @@ export const LabelFilterItem: FC<LabelFilterItemProps> = ({
|
|||||||
options={optionsWithSelectAll}
|
options={optionsWithSelectAll}
|
||||||
value={isAllSelected ? options : value}
|
value={isAllSelected ? options : value}
|
||||||
getOptionLabel={(option) =>
|
getOptionLabel={(option) =>
|
||||||
option === SELECT_ALL ? 'Select all' : option
|
option === SELECT_ALL ? '(Select all)' : option
|
||||||
}
|
}
|
||||||
onChange={(_, newValues, reason, details) => {
|
onChange={(_, newValues, reason, details) => {
|
||||||
if (details?.option === SELECT_ALL) {
|
if (details?.option === SELECT_ALL) {
|
||||||
@ -55,7 +55,16 @@ export const LabelFilterItem: FC<LabelFilterItemProps> = ({
|
|||||||
}
|
}
|
||||||
style={{ marginRight: 8 }}
|
style={{ marginRight: 8 }}
|
||||||
/>
|
/>
|
||||||
{option === SELECT_ALL ? 'Select all' : option}
|
{option === SELECT_ALL ? (
|
||||||
|
<Typography
|
||||||
|
component='span'
|
||||||
|
sx={{ color: 'text.secondary' }}
|
||||||
|
>
|
||||||
|
Select all
|
||||||
|
</Typography>
|
||||||
|
) : (
|
||||||
|
option
|
||||||
|
)}
|
||||||
</li>
|
</li>
|
||||||
)}
|
)}
|
||||||
renderTags={(value, getTagProps) => {
|
renderTags={(value, getTagProps) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user