#
luxiaotao1123
2024-09-29 d69391dfe6333aadf858d5b9b52b5f3007ba16e4
zy-acs-flow/src/page/mission/MissionCard.jsx
@@ -1,5 +1,5 @@
import { Draggable } from '@hello-pangea/dnd';
import { Box, Card, Typography, Avatar, Divider, Stack, Slider } from '@mui/material';
import { Box, Card, Typography, Avatar, Divider, Stack, Slider, useTheme } from '@mui/material';
import { ReferenceField, useRedirect } from 'react-admin';
import { blueGrey } from '@mui/material/colors';
import { styled } from '@mui/material/styles';
@@ -21,6 +21,7 @@
};
export const MissionCardContent = ({ provided, snapshot, mission, }) => {
    const theme = useTheme();
    const redirect = useRedirect();
    const handleClick = () => {
        redirect(`/mission/${mission.id}/show`, undefined, undefined, undefined, {
@@ -50,7 +51,7 @@
                            sx={{
                                width: 30,
                                height: 30,
                                bgcolor: blueGrey[500],
                                bgcolor: theme.palette.primary.main,
                            }}
                        >
                            {mission.agv}