From 79e1a2148b9e6c30384e482791f22baaa04e4bd7 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期二, 18 三月 2025 14:31:45 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/insight/BoolValueIcon.jsx | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/zy-acs-flow/src/map/insight/BoolValueIcon.jsx b/zy-acs-flow/src/map/insight/BoolValueIcon.jsx
index 1183b95..deaf5cc 100644
--- a/zy-acs-flow/src/map/insight/BoolValueIcon.jsx
+++ b/zy-acs-flow/src/map/insight/BoolValueIcon.jsx
@@ -1,12 +1,14 @@
import React from 'react';
-import { CheckCircle, Cancel } from '@mui/icons-material';
+import { useTheme } from '@mui/material';
+import { Check, Close } from '@mui/icons-material';
import { green, red } from '@mui/material/colors';
const BoolValueIcon = ({ value }) => {
+ const theme = useTheme();
return value ? (
- <CheckCircle style={{ color: green[500] }} />
+ <Check style={{ color: theme.palette.primary.main, fontSize: '24px' }} />
) : (
- <Cancel style={{ color: red[500] }} />
+ <Close style={{ color: theme.palette.error.main, fontSize: '24px' }} />
);
};
--
Gitblit v1.9.1