| | |
| | | FilterLiveSearch, |
| | | FilterList, |
| | | FilterListItem, |
| | | useTheme, |
| | | useStore, |
| | | } from 'react-admin'; |
| | | import { Box, Typography, Card, CardContent } from '@mui/material'; |
| | | import { styled } from '@mui/material/styles'; |
| | | import { PAGE_DRAWER_WIDTH, OPERATE_MODE } from '@/config/setting'; |
| | | import { DEFAULT_THEME_NAME } from '@/config/setting'; |
| | | import * as Common from '@/utils/common'; |
| | | import MailIcon from '@mui/icons-material/MailOutline' |
| | | import BookmarkIcon from '@mui/icons-material/BookmarkBorder'; |
| | | import CategoryIcon from '@mui/icons-material/LocalOffer'; |
| | | import { |
| | | endOfYesterday, |
| | | startOfWeek, |
| | | subWeeks, |
| | | startOfMonth, |
| | | subMonths, |
| | | } from 'date-fns'; |
| | | |
| | | const UserListAside = (props) => { |
| | | const theme = useTheme(); |
| | | const [themeName] = useStore('themeName', DEFAULT_THEME_NAME); |
| | | console.log() |
| | | |
| | | const isSelected = (value, filters) => { |
| | | const categories = filters.categories || []; |
| | |
| | | <> |
| | | <Card |
| | | sx={{ |
| | | display: { |
| | | xs: 'none', |
| | | md: 'block', |
| | | }, |
| | | display: { xs: 'none', md: 'block', }, |
| | | order: -1, |
| | | // flex: '0 0 15em', |
| | | mr: 2, |
| | | mt: 6, |
| | | mt: 8, |
| | | alignSelf: 'flex-start', |
| | | border: theme[0] === 'light' && '1px solid #e0e0e3', |
| | | // borderRadius: 0, |
| | | // width: 200 |
| | | }} |
| | | > |