Feat: Filters UI
This commit is contained in:
1 parent
211195f7b3
commit
b2f6850b81
3 files changed
+5
-1
No files matched your search
@@ -42,7 +42,7 @@ const FilterHeader = ({ header, options, value, onChange, multiple = true }) =>
|
|||||||
return header;
|
return header;
|
||||||
}
|
}
|
||||||
|
|
||||||
return selected
|
return header + " | " + selected
|
||||||
.map((value) => options.find((option) => option.value === value)?.label)
|
.map((value) => options.find((option) => option.value === value)?.label)
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.join(", ");
|
.join(", ");
|
||||||
|
|||||||
@@ -477,6 +477,7 @@ const baseTheme = (palette) => ({
|
|||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
"& .MuiOutlinedInput-input": {
|
"& .MuiOutlinedInput-input": {
|
||||||
color: theme.palette.primary.contrastText,
|
color: theme.palette.primary.contrastText,
|
||||||
|
paddingLeft: theme.spacing(14),
|
||||||
},
|
},
|
||||||
"& .MuiOutlinedInput-notchedOutline": {
|
"& .MuiOutlinedInput-notchedOutline": {
|
||||||
borderColor: theme.palette.primary.lowContrast,
|
borderColor: theme.palette.primary.lowContrast,
|
||||||
@@ -484,6 +485,7 @@ const baseTheme = (palette) => ({
|
|||||||
},
|
},
|
||||||
"& .MuiSelect-icon": {
|
"& .MuiSelect-icon": {
|
||||||
color: theme.palette.primary.contrastTextSecondary, // Dropdown + color
|
color: theme.palette.primary.contrastTextSecondary, // Dropdown + color
|
||||||
|
left: theme.spacing(4),
|
||||||
},
|
},
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
backgroundColor: theme.palette.primary.main, // Background on hover
|
backgroundColor: theme.palette.primary.main, // Background on hover
|
||||||
|
|||||||
@@ -186,6 +186,8 @@
|
|||||||
},
|
},
|
||||||
"testLocale": "testLocale",
|
"testLocale": "testLocale",
|
||||||
"add": "Add",
|
"add": "Add",
|
||||||
|
"state": "State",
|
||||||
|
"reset": "Reset",
|
||||||
"monitors": "monitors",
|
"monitors": "monitors",
|
||||||
"distributedUptimeStatusCreateStatusPage": "status page",
|
"distributedUptimeStatusCreateStatusPage": "status page",
|
||||||
"distributedUptimeStatusCreateStatusPageAccess": "Access",
|
"distributedUptimeStatusCreateStatusPageAccess": "Access",
|
||||||
|
|||||||
Reference in new issue
Block a user