update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useSelector } from "react-redux";
|
||||
import { motion, AnimatePresence } from "framer-motion";
|
||||
import { motion } from "framer-motion";
|
||||
|
||||
function FeederStatus(props) {
|
||||
const feeder = useSelector((state) => state.feeder);
|
||||
@@ -29,7 +29,12 @@ function FeederStatus(props) {
|
||||
color: "#fff",
|
||||
border: "1px solid #fff",
|
||||
padding: "12px",
|
||||
background: leftFeeder == "运行" ? "#0f03" : leftFeeder == "故障" ? "#f003" : "#da33",
|
||||
background:
|
||||
leftFeeder == "运行"
|
||||
? "#0f03"
|
||||
: leftFeeder == "故障"
|
||||
? "#f003"
|
||||
: "#da33",
|
||||
}}
|
||||
>
|
||||
投料机1 : {leftFeeder}
|
||||
@@ -39,7 +44,12 @@ function FeederStatus(props) {
|
||||
color: "#fff",
|
||||
border: "1px solid #fff",
|
||||
padding: "12px",
|
||||
background: rightFeeder == "运行" ? "#0f03" : rightFeeder == "故障" ? "#f003" : "#da33",
|
||||
background:
|
||||
rightFeeder == "运行"
|
||||
? "#0f03"
|
||||
: rightFeeder == "故障"
|
||||
? "#f003"
|
||||
: "#da33",
|
||||
}}
|
||||
>
|
||||
投料机2 : {rightFeeder}
|
||||
|
||||
Reference in New Issue
Block a user