update,
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import type { SWRConfiguration } from 'swr';
|
||||
import type { ICalendarEvent } from 'src/types/calendar';
|
||||
|
||||
import { useMemo } from 'react';
|
||||
import axios, { endpoints, fetcher } from 'src/lib/axios';
|
||||
import type { ICalendarEvent } from 'src/types/calendar';
|
||||
import type { SWRConfiguration } from 'swr';
|
||||
import useSWR, { mutate } from 'swr';
|
||||
|
||||
import axios, { fetcher, endpoints } from 'src/lib/axios';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
const enableServer = false;
|
||||
|
@@ -1,15 +1,21 @@
|
||||
import Button from '@mui/material/Button';
|
||||
import Dialog from '@mui/material/Dialog';
|
||||
import DialogTitle from '@mui/material/DialogTitle';
|
||||
import DialogActions from '@mui/material/DialogActions';
|
||||
import DialogContent from '@mui/material/DialogContent';
|
||||
|
||||
import type { ConfirmDialogProps } from './types';
|
||||
import DialogTitle from '@mui/material/DialogTitle';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import type { ConfirmDialogProps } from './types';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
export function ConfirmDialog({ open, title, action, content, onClose, ...other }: ConfirmDialogProps) {
|
||||
export function ConfirmDialog({
|
||||
open,
|
||||
title,
|
||||
action,
|
||||
content,
|
||||
onClose,
|
||||
...other
|
||||
}: ConfirmDialogProps) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
|
@@ -1,22 +1,22 @@
|
||||
// src/components/hook-form/fields.tsx
|
||||
//
|
||||
import { RHFCode } from './rhf-code';
|
||||
import { RHFRating } from './rhf-rating';
|
||||
import { RHFEditor } from './rhf-editor';
|
||||
import { RHFSlider } from './rhf-slider';
|
||||
import { RHFUpload } from './rhf-upload';
|
||||
import { RHFTextField } from './rhf-text-field';
|
||||
import { RHFUploadBox } from './rhf-upload-box';
|
||||
import { RHFRadioGroup } from './rhf-radio-group';
|
||||
import { RHFPhoneInput } from './rhf-phone-input';
|
||||
import { RHFNumberInput } from './rhf-number-input';
|
||||
import { RHFAutocomplete } from './rhf-autocomplete';
|
||||
import { RHFUploadAvatar } from './rhf-upload-avatar';
|
||||
import { RHFCountrySelect } from './rhf-country-select';
|
||||
import { RHFSwitch, RHFMultiSwitch } from './rhf-switch';
|
||||
import { RHFSelect, RHFMultiSelect } from './rhf-select';
|
||||
import { RHFCheckbox, RHFMultiCheckbox } from './rhf-checkbox';
|
||||
import { RHFCode } from './rhf-code';
|
||||
import { RHFCountrySelect } from './rhf-country-select';
|
||||
import { RHFDatePicker, RHFMobileDateTimePicker } from './rhf-date-picker';
|
||||
import { RHFEditor } from './rhf-editor';
|
||||
import { RHFNumberInput } from './rhf-number-input';
|
||||
import { RHFPhoneInput } from './rhf-phone-input';
|
||||
import { RHFRadioGroup } from './rhf-radio-group';
|
||||
import { RHFRating } from './rhf-rating';
|
||||
import { RHFMultiSelect, RHFSelect } from './rhf-select';
|
||||
import { RHFSlider } from './rhf-slider';
|
||||
import { RHFMultiSwitch, RHFSwitch } from './rhf-switch';
|
||||
import { RHFTextField } from './rhf-text-field';
|
||||
import { RHFUpload } from './rhf-upload';
|
||||
import { RHFUploadAvatar } from './rhf-upload-avatar';
|
||||
import { RHFUploadBox } from './rhf-upload-box';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
|
@@ -1,17 +1,13 @@
|
||||
import { isEqualPath } from 'minimal-shared/utils';
|
||||
|
||||
import Link from '@mui/material/Link';
|
||||
import { styled } from '@mui/material/styles';
|
||||
import Typography from '@mui/material/Typography';
|
||||
|
||||
import { usePathname } from 'src/routes/hooks';
|
||||
import { RouterLink } from 'src/routes/components';
|
||||
|
||||
import { megaMenuClasses } from '../styles';
|
||||
import { NavUl, NavLi } from './nav-elements';
|
||||
|
||||
import type { NavSubItemProps, NavSubListProps } from '../types';
|
||||
import { isEqualPath } from 'minimal-shared/utils';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { RouterLink } from 'src/routes/components';
|
||||
import { usePathname } from 'src/routes/hooks';
|
||||
import { megaMenuClasses } from '../styles';
|
||||
import type { NavSubItemProps, NavSubListProps } from '../types';
|
||||
import { NavLi, NavUl } from './nav-elements';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
@@ -24,7 +20,13 @@ export function NavSubList({ data, slotProps, ...other }: NavSubListProps) {
|
||||
{data?.map((list) => (
|
||||
<NavLi key={list?.subheader ?? list.items[0].title} {...other}>
|
||||
{list?.subheader && (
|
||||
<Typography noWrap component="div" variant="subtitle2" className={megaMenuClasses.subheader} sx={{ mb: 1, ...slotProps?.subheader }}>
|
||||
<Typography
|
||||
noWrap
|
||||
component="div"
|
||||
variant="subtitle2"
|
||||
className={megaMenuClasses.subheader}
|
||||
sx={{ mb: 1, ...slotProps?.subheader }}
|
||||
>
|
||||
{list.subheader}
|
||||
</Typography>
|
||||
)}
|
||||
|
@@ -1,20 +1,25 @@
|
||||
import type { ListSubheaderProps } from '@mui/material/ListSubheader';
|
||||
|
||||
import { mergeClasses } from 'minimal-shared/utils';
|
||||
|
||||
import { styled } from '@mui/material/styles';
|
||||
import ListSubheader from '@mui/material/ListSubheader';
|
||||
|
||||
import { navSectionClasses } from '../styles';
|
||||
import { styled } from '@mui/material/styles';
|
||||
import { mergeClasses } from 'minimal-shared/utils';
|
||||
import { Iconify, iconifyClasses } from '../../iconify';
|
||||
import { navSectionClasses } from '../styles';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
export type NavSubheaderProps = ListSubheaderProps & { open?: boolean };
|
||||
|
||||
export const NavSubheader = styled(({ open, children, className, ...other }: NavSubheaderProps) => (
|
||||
<ListSubheader disableSticky component="div" {...other} className={mergeClasses([navSectionClasses.subheader, className])}>
|
||||
<Iconify width={16} icon={open ? 'eva:arrow-ios-downward-fill' : 'eva:arrow-ios-forward-fill'} />
|
||||
<ListSubheader
|
||||
disableSticky
|
||||
component="div"
|
||||
{...other}
|
||||
className={mergeClasses([navSectionClasses.subheader, className])}
|
||||
>
|
||||
<Iconify
|
||||
width={16}
|
||||
icon={open ? 'eva:arrow-ios-downward-fill' : 'eva:arrow-ios-forward-fill'}
|
||||
/>
|
||||
{children}
|
||||
</ListSubheader>
|
||||
))(({ theme }) => ({
|
||||
|
@@ -11,6 +11,7 @@ import TableCell from '@mui/material/TableCell';
|
||||
import TableRow from '@mui/material/TableRow';
|
||||
import Tooltip from '@mui/material/Tooltip';
|
||||
import { useBoolean, usePopover } from 'minimal-shared/hooks';
|
||||
import { useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { ConfirmDialog } from 'src/components/custom-dialog';
|
||||
import { CustomPopover } from 'src/components/custom-popover';
|
||||
@@ -19,7 +20,6 @@ import { Label } from 'src/components/label';
|
||||
import { RouterLink } from 'src/routes/components';
|
||||
import type { IUserItem } from 'src/types/user';
|
||||
import { UserQuickEditForm } from './user-quick-edit-form';
|
||||
import { useState } from 'react';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user