#
vincentlu
2025-02-17 0158ee3c96d9f8de7de2b7cbc8e5efb4f78a8ec7
zy-acs-flow/src/page/agv/AgvAvatar.jsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { Avatar, Typography } from '@mui/material';
import { Avatar, Typography, useTheme } from '@mui/material';
import { useRecordContext } from 'react-admin';
import { blueGrey } from '@mui/material/colors';
export const AgvAvatar = (props) => {
    const theme = useTheme();
    const { width = 40, height = 40 } = props;
    const record = useRecordContext(props);
    if (!record) return null;
@@ -16,7 +17,7 @@
                width,
                height,
                fontSize: height !== 40 ? '0.6rem' : undefined,
                bgcolor: blueGrey[500]
                bgcolor: theme.palette.primary.main,
            }}
        >
            {record.uuid}