feat: search and actions
This commit is contained in:
1 parent
07641a2bd8
commit
be144c5ed2
2 files changed
+7
-6
No files matched your search
@@ -155,16 +155,21 @@ const Search = ({
|
|||||||
popper: {
|
popper: {
|
||||||
keepMounted: true,
|
keepMounted: true,
|
||||||
sx: {
|
sx: {
|
||||||
"& ul": { p: 2 },
|
"& ul": { p: 2, backgroundColor: theme.palette.primary.main },
|
||||||
"& li.MuiAutocomplete-option": {
|
"& li.MuiAutocomplete-option": {
|
||||||
color: theme.palette.primary.contrastText.secondary,
|
color: theme.palette.primary.contrastText.secondary,
|
||||||
px: 4,
|
px: 4,
|
||||||
borderRadius: theme.shape.borderRadius,
|
borderRadius: theme.shape.borderRadius,
|
||||||
},
|
},
|
||||||
|
|
||||||
"& .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true'], & .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true'].Mui-focused, & .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true']:hover":
|
"& .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true'], & .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true'].Mui-focused, & .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true']:hover":
|
||||||
{
|
{
|
||||||
backgroundColor: theme.palette.primary.lowContrast,
|
backgroundColor: theme.palette.primary.lowContrast,
|
||||||
},
|
},
|
||||||
|
"& li.MuiAutocomplete-option:hover:not([aria-selected='true'])": {
|
||||||
|
color: theme.palette.primary.main,
|
||||||
|
backgroundColor: theme.palette.primary.contrastText.secondary,
|
||||||
|
},
|
||||||
"& .MuiAutocomplete-noOptions": {
|
"& .MuiAutocomplete-noOptions": {
|
||||||
px: theme.spacing(6),
|
px: theme.spacing(6),
|
||||||
py: theme.spacing(5),
|
py: theme.spacing(5),
|
||||||
|
|||||||
@@ -60,17 +60,13 @@ const UptimeMonitors = () => {
|
|||||||
{canAddMonitor && (
|
{canAddMonitor && (
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="accent"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate("/uptime/create");
|
navigate("/uptime/create");
|
||||||
}}
|
}}
|
||||||
sx={{
|
sx={{
|
||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
whiteSpace: "nowrap",
|
whiteSpace: "nowrap",
|
||||||
/*
|
|
||||||
TODO Problem, could not make button mui work
|
|
||||||
backgroundColor: theme.palette.accent.main,
|
|
||||||
color: theme.palette.accent.contrastText, */
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Create new
|
Create new
|
||||||
|
|||||||
Reference in new issue
Block a user