Handled styling of new icons
This commit is contained in:
1 parent
a73d0ef3b4
commit
ebfb25ebc0
2 files changed
+6
-7
No files matched your search
@@ -1,5 +0,0 @@
|
|||||||
svg {
|
|
||||||
width: 20px;
|
|
||||||
height: 20px;
|
|
||||||
opacity: 0.9;
|
|
||||||
}
|
|
||||||
@@ -6,14 +6,18 @@ import AlertIcon from "../../../../assets/icons/alert-icon.svg?react";
|
|||||||
import CheckIcon from "../../../../assets/icons/check-icon.svg?react";
|
import CheckIcon from "../../../../assets/icons/check-icon.svg?react";
|
||||||
import CloseIcon from "../../../../assets/icons/close-icon.svg?react";
|
import CloseIcon from "../../../../assets/icons/close-icon.svg?react";
|
||||||
import WarningIcon from "../../../../assets/icons/warning-icon.svg?react";
|
import WarningIcon from "../../../../assets/icons/warning-icon.svg?react";
|
||||||
import "./StatusBox.css";
|
|
||||||
|
|
||||||
const StatusBox = ({ title, value, status }) => {
|
const StatusBox = ({ title, value, status }) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
let sharedStyles = {
|
let sharedStyles = {
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
right: 8,
|
right: 8,
|
||||||
"& svg path": { stroke: theme.palette.primary.contrastTextTertiary },
|
"& svg": {
|
||||||
|
width: 20,
|
||||||
|
height: 20,
|
||||||
|
opacity: 0.9,
|
||||||
|
"& path": { stroke: theme.palette.primary.contrastTextTertiary, strokeWidth: 1.7 },
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
let color;
|
let color;
|
||||||
|
|||||||
Reference in new issue
Block a user