Merge pull request #1256 from bluewave-labs/fix/removeAction
Fix/remove action
This commit is contained in:
6 files changed
+8
-5
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
import React, { useState } from "react";
|
import { useState } from "react";
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
import { useNavigate } from "react-router";
|
import { useNavigate } from "react-router";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ const InfrastructureMenu = ({ monitor, isAdmin, updateCallback }) => {
|
|||||||
"& ul": { p: theme.spacing(2.5) },
|
"& ul": { p: theme.spacing(2.5) },
|
||||||
"& li": { m: 0 },
|
"& li": { m: 0 },
|
||||||
"& li:last-of-type": {
|
"& li:last-of-type": {
|
||||||
color: theme.palette.error.contrastText,
|
color: theme.palette.error.main,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ const ActionsMenu = ({ /* isAdmin, */ maintenanceWindow, updateCallback }) => {
|
|||||||
"& ul": { p: theme.spacing(2.5) },
|
"& ul": { p: theme.spacing(2.5) },
|
||||||
"& li": { m: 0 },
|
"& li": { m: 0 },
|
||||||
"& li:last-of-type": {
|
"& li:last-of-type": {
|
||||||
color: theme.palette.error.contrastText,
|
color: theme.palette.error.main,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ const ActionsMenu = ({ monitor, isAdmin, updateCallback }) => {
|
|||||||
"& ul": { p: theme.spacing(2.5) },
|
"& ul": { p: theme.spacing(2.5) },
|
||||||
"& li": { m: 0 },
|
"& li": { m: 0 },
|
||||||
"& li:last-of-type": {
|
"& li:last-of-type": {
|
||||||
color: theme.palette.error.contrastText,
|
color: theme.palette.error.main,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -206,12 +206,14 @@ const semanticColors = {
|
|||||||
light: {
|
light: {
|
||||||
light: paletteColors.gray200,
|
light: paletteColors.gray200,
|
||||||
dark: paletteColors.gray800,
|
dark: paletteColors.gray800,
|
||||||
|
/* TODO this should live in a different key (border.disabled.light and .dark) */
|
||||||
disabled: paletteColors.gray150,
|
disabled: paletteColors.gray150,
|
||||||
},
|
},
|
||||||
dark: {
|
dark: {
|
||||||
light: paletteColors.gray200,
|
light: paletteColors.gray200,
|
||||||
dark: paletteColors.gray750,
|
dark: paletteColors.gray750,
|
||||||
disabled: paletteColors.gray800,
|
/* TODO this should live in a different key (border.disabled.light and .dark) */
|
||||||
|
disabled: paletteColors.gray150,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
unresolved: {
|
unresolved: {
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ const {
|
|||||||
} = colors;
|
} = colors;
|
||||||
|
|
||||||
const palette = {
|
const palette = {
|
||||||
|
/* TODO check if we need the addition of a new color gray150 for this. Also, this color would probably fit for primary contrastText */
|
||||||
action: {
|
action: {
|
||||||
disabled: border.light.disabled,
|
disabled: border.light.disabled,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user