build ok,
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
import type { ICalendarFilters } from 'src/types/calendar';
|
||||
import type { UseSetStateReturn } from 'minimal-shared/hooks';
|
||||
import type { FiltersResultProps } from 'src/components/filters-result';
|
||||
|
||||
import { useCallback } from 'react';
|
||||
import { varAlpha } from 'minimal-shared/utils';
|
||||
|
||||
import Box from '@mui/material/Box';
|
||||
import Chip from '@mui/material/Chip';
|
||||
|
||||
import { fDateRangeShortLabel } from 'src/utils/format-time';
|
||||
|
||||
import type { UseSetStateReturn } from 'minimal-shared/hooks';
|
||||
import { varAlpha } from 'minimal-shared/utils';
|
||||
import { useCallback } from 'react';
|
||||
import type { FiltersResultProps } from 'src/components/filters-result';
|
||||
import { chipProps, FiltersBlock, FiltersResult } from 'src/components/filters-result';
|
||||
import type { ICalendarFilters } from 'src/types/calendar';
|
||||
import { fDateRangeShortLabel } from 'src/utils/format-time';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
|
@@ -1,26 +1,22 @@
|
||||
import type { IDatePickerControl } from 'src/types/common';
|
||||
import type { UseSetStateReturn } from 'minimal-shared/hooks';
|
||||
import type { ICalendarEvent, ICalendarFilters } from 'src/types/calendar';
|
||||
|
||||
import { useCallback } from 'react';
|
||||
import { orderBy } from 'es-toolkit';
|
||||
|
||||
import Box from '@mui/material/Box';
|
||||
import Badge from '@mui/material/Badge';
|
||||
import Drawer from '@mui/material/Drawer';
|
||||
import Box from '@mui/material/Box';
|
||||
import Divider from '@mui/material/Divider';
|
||||
import Tooltip from '@mui/material/Tooltip';
|
||||
import Drawer from '@mui/material/Drawer';
|
||||
import IconButton from '@mui/material/IconButton';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import ListItemText from '@mui/material/ListItemText';
|
||||
import ListItemButton from '@mui/material/ListItemButton';
|
||||
import ListItemText from '@mui/material/ListItemText';
|
||||
import Tooltip from '@mui/material/Tooltip';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import { DatePicker } from '@mui/x-date-pickers/DatePicker';
|
||||
|
||||
import { fDate, fDateTime } from 'src/utils/format-time';
|
||||
|
||||
import { orderBy } from 'es-toolkit';
|
||||
import type { UseSetStateReturn } from 'minimal-shared/hooks';
|
||||
import { useCallback } from 'react';
|
||||
import { ColorPicker } from 'src/components/color-utils';
|
||||
import { Iconify } from 'src/components/iconify';
|
||||
import { Scrollbar } from 'src/components/scrollbar';
|
||||
import { ColorPicker } from 'src/components/color-utils';
|
||||
import type { ICalendarEvent, ICalendarFilters } from 'src/types/calendar';
|
||||
import type { IDatePickerControl } from 'src/types/common';
|
||||
import { fDate, fDateTime } from 'src/utils/format-time';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
|
@@ -1,27 +1,22 @@
|
||||
import type { ICalendarEvent } from 'src/types/calendar';
|
||||
|
||||
import { z as zod } from 'zod';
|
||||
import { useCallback } from 'react';
|
||||
import { uuidv4 } from 'minimal-shared/utils';
|
||||
import { zodResolver } from '@hookform/resolvers/zod';
|
||||
import { useForm, Controller } from 'react-hook-form';
|
||||
|
||||
import Box from '@mui/material/Box';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import Button from '@mui/material/Button';
|
||||
import Tooltip from '@mui/material/Tooltip';
|
||||
import IconButton from '@mui/material/IconButton';
|
||||
import DialogActions from '@mui/material/DialogActions';
|
||||
|
||||
import { fIsAfter } from 'src/utils/format-time';
|
||||
|
||||
import { createEvent, updateEvent, deleteEvent } from 'src/actions/calendar';
|
||||
|
||||
import { toast } from 'src/components/snackbar';
|
||||
import IconButton from '@mui/material/IconButton';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import Tooltip from '@mui/material/Tooltip';
|
||||
import { uuidv4 } from 'minimal-shared/utils';
|
||||
import { useCallback } from 'react';
|
||||
import { Controller, useForm } from 'react-hook-form';
|
||||
import { createEvent, deleteEvent, updateEvent } from 'src/actions/calendar';
|
||||
import { ColorPicker } from 'src/components/color-utils';
|
||||
import { Field, Form } from 'src/components/hook-form';
|
||||
import { Iconify } from 'src/components/iconify';
|
||||
import { Scrollbar } from 'src/components/scrollbar';
|
||||
import { Form, Field } from 'src/components/hook-form';
|
||||
import { ColorPicker } from 'src/components/color-utils';
|
||||
import { toast } from 'src/components/snackbar';
|
||||
import type { ICalendarEvent } from 'src/types/calendar';
|
||||
import { fIsAfter } from 'src/utils/format-time';
|
||||
import { z as zod } from 'zod';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
|
@@ -1,19 +1,16 @@
|
||||
import type { IDateValue } from 'src/types/common';
|
||||
import type { ICalendarView } from 'src/types/calendar';
|
||||
|
||||
import { usePopover } from 'minimal-shared/hooks';
|
||||
|
||||
import Box from '@mui/material/Box';
|
||||
import Badge from '@mui/material/Badge';
|
||||
import Box from '@mui/material/Box';
|
||||
import Button from '@mui/material/Button';
|
||||
import MenuList from '@mui/material/MenuList';
|
||||
import MenuItem from '@mui/material/MenuItem';
|
||||
import IconButton from '@mui/material/IconButton';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import LinearProgress from '@mui/material/LinearProgress';
|
||||
|
||||
import { Iconify } from 'src/components/iconify';
|
||||
import MenuItem from '@mui/material/MenuItem';
|
||||
import MenuList from '@mui/material/MenuList';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import { usePopover } from 'minimal-shared/hooks';
|
||||
import { CustomPopover } from 'src/components/custom-popover';
|
||||
import { Iconify } from 'src/components/iconify';
|
||||
import type { ICalendarView } from 'src/types/calendar';
|
||||
import type { IDateValue } from 'src/types/common';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
|
@@ -1,11 +1,9 @@
|
||||
import type FullCalendar from '@fullcalendar/react';
|
||||
import type { DateSelectArg, EventClickArg, EventDropArg } from '@fullcalendar/core/index.js';
|
||||
import type { EventResizeDoneArg } from '@fullcalendar/interaction/index.js';
|
||||
import type { ICalendarView, ICalendarRange, ICalendarEvent } from 'src/types/calendar';
|
||||
import type { EventDropArg, DateSelectArg, EventClickArg } from '@fullcalendar/core/index.js';
|
||||
|
||||
import { useRef, useState, useCallback } from 'react';
|
||||
|
||||
import type FullCalendar from '@fullcalendar/react';
|
||||
import useMediaQuery from '@mui/material/useMediaQuery';
|
||||
import { useCallback, useRef, useState } from 'react';
|
||||
import type { ICalendarEvent, ICalendarRange, ICalendarView } from 'src/types/calendar';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
|
@@ -1,9 +1,7 @@
|
||||
import type { ICalendarEvent, ICalendarRange } from 'src/types/calendar';
|
||||
|
||||
import dayjs from 'dayjs';
|
||||
import { useMemo } from 'react';
|
||||
|
||||
import { CALENDAR_COLOR_OPTIONS } from 'src/_mock/_calendar';
|
||||
import type { ICalendarEvent, ICalendarRange } from 'src/types/calendar';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
import { varAlpha } from 'minimal-shared/utils';
|
||||
|
||||
import { styled } from '@mui/material/styles';
|
||||
import { varAlpha } from 'minimal-shared/utils';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
|
@@ -1,38 +1,32 @@
|
||||
import type { Theme, SxProps } from '@mui/material/styles';
|
||||
import type { ICalendarEvent, ICalendarFilters } from 'src/types/calendar';
|
||||
|
||||
import Calendar from '@fullcalendar/react';
|
||||
import { useEffect, startTransition } from 'react';
|
||||
import listPlugin from '@fullcalendar/list/index.js';
|
||||
import dayGridPlugin from '@fullcalendar/daygrid/index.js';
|
||||
import interactionPlugin from '@fullcalendar/interaction/index.js';
|
||||
import listPlugin from '@fullcalendar/list/index.js';
|
||||
import Calendar from '@fullcalendar/react';
|
||||
import timeGridPlugin from '@fullcalendar/timegrid/index.js';
|
||||
import timelinePlugin from '@fullcalendar/timeline/index.js';
|
||||
import { useBoolean, useSetState } from 'minimal-shared/hooks';
|
||||
import interactionPlugin from '@fullcalendar/interaction/index.js';
|
||||
|
||||
import Box from '@mui/material/Box';
|
||||
import Card from '@mui/material/Card';
|
||||
import Button from '@mui/material/Button';
|
||||
import Card from '@mui/material/Card';
|
||||
import Dialog from '@mui/material/Dialog';
|
||||
import DialogTitle from '@mui/material/DialogTitle';
|
||||
import type { SxProps, Theme } from '@mui/material/styles';
|
||||
import { useTheme } from '@mui/material/styles';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import DialogTitle from '@mui/material/DialogTitle';
|
||||
|
||||
import { fDate, fIsAfter, fIsBetween } from 'src/utils/format-time';
|
||||
|
||||
import { DashboardContent } from 'src/layouts/dashboard';
|
||||
import { useBoolean, useSetState } from 'minimal-shared/hooks';
|
||||
import { startTransition, useEffect } from 'react';
|
||||
import { CALENDAR_COLOR_OPTIONS } from 'src/_mock/_calendar';
|
||||
import { updateEvent, useGetEvents } from 'src/actions/calendar';
|
||||
|
||||
import { Iconify } from 'src/components/iconify';
|
||||
|
||||
import { CalendarRoot } from '../styles';
|
||||
import { useEvent } from '../hooks/use-event';
|
||||
import { CalendarForm } from '../calendar-form';
|
||||
import { useCalendar } from '../hooks/use-calendar';
|
||||
import { CalendarToolbar } from '../calendar-toolbar';
|
||||
import { DashboardContent } from 'src/layouts/dashboard';
|
||||
import type { ICalendarEvent, ICalendarFilters } from 'src/types/calendar';
|
||||
import { fDate, fIsAfter, fIsBetween } from 'src/utils/format-time';
|
||||
import { CalendarFilters } from '../calendar-filters';
|
||||
import { CalendarFiltersResult } from '../calendar-filters-result';
|
||||
import { CalendarForm } from '../calendar-form';
|
||||
import { CalendarToolbar } from '../calendar-toolbar';
|
||||
import { useCalendar } from '../hooks/use-calendar';
|
||||
import { useEvent } from '../hooks/use-event';
|
||||
import { CalendarRoot } from '../styles';
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user