change structure dmenu
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import { type FC, useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import Button from '../../components/Button'
|
||||
import Button from '../../../components/Button'
|
||||
import { Add } from 'iconsax-react'
|
||||
import CreateGroupIcon from './components/CreateGroupIcon'
|
||||
import { useGetGroupIcons, useDeleteGroupIcon } from './hooks/useIconData'
|
||||
import Td from '../../components/Td'
|
||||
import Input from '../../components/Input'
|
||||
import PageLoading from '../../components/PageLoading'
|
||||
import TrashWithConfrim from '../../components/TrashWithConfrim'
|
||||
import { useGetGroupIcons, useDeleteGroupIcon } from '../hooks/useIconData'
|
||||
import Td from '../../../components/Td'
|
||||
import Input from '../../../components/Input'
|
||||
import PageLoading from '../../../components/PageLoading'
|
||||
import TrashWithConfrim from '../../../components/TrashWithConfrim'
|
||||
import { toast } from 'react-toastify'
|
||||
import { ErrorType } from '../../helpers/types'
|
||||
import { ErrorType } from '../../../helpers/types'
|
||||
import { GroupIconType } from './types/Types'
|
||||
|
||||
const GroupIconList: FC = () => {
|
||||
@@ -1,15 +1,15 @@
|
||||
import { useState, type FC } from 'react'
|
||||
import { useGetIcons, useDeleteIcon } from './hooks/useIconData'
|
||||
import { useGetIcons, useDeleteIcon } from '../hooks/useIconData'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import Button from '../../components/Button'
|
||||
import Button from '../../../components/Button'
|
||||
import { Add } from 'iconsax-react'
|
||||
import CreateIcon from './components/CreateIcon'
|
||||
import Td from '../../components/Td'
|
||||
import Input from '../../components/Input'
|
||||
import PageLoading from '../../components/PageLoading'
|
||||
import TrashWithConfrim from '../../components/TrashWithConfrim'
|
||||
import Td from '../../../components/Td'
|
||||
import Input from '../../../components/Input'
|
||||
import PageLoading from '../../../components/PageLoading'
|
||||
import TrashWithConfrim from '../../../components/TrashWithConfrim'
|
||||
import { toast } from 'react-toastify'
|
||||
import { ErrorType } from '../../helpers/types'
|
||||
import { ErrorType } from '../../../helpers/types'
|
||||
import { IconType } from './types/Types'
|
||||
import moment from 'moment-jalaali'
|
||||
|
||||
+5
-5
@@ -1,15 +1,15 @@
|
||||
import { FC } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import Button from '../../../components/Button'
|
||||
import DefaulModal from '../../../components/DefaulModal'
|
||||
import Input from '../../../components/Input'
|
||||
import Button from '../../../../components/Button'
|
||||
import DefaulModal from '../../../../components/DefaulModal'
|
||||
import Input from '../../../../components/Input'
|
||||
import { useFormik } from 'formik'
|
||||
import * as Yup from 'yup'
|
||||
import { toast } from 'react-toastify'
|
||||
import { TickCircle } from 'iconsax-react'
|
||||
import { useCreateGroupIcon } from '../hooks/useIconData'
|
||||
import { useCreateGroupIcon } from '../../hooks/useIconData'
|
||||
import { CreateGroupIconType } from '../types/Types'
|
||||
import { ErrorType } from '../../../helpers/types'
|
||||
import { ErrorType } from '../../../../helpers/types'
|
||||
|
||||
interface CreateGroupIconProps {
|
||||
open: boolean
|
||||
+7
-7
@@ -1,17 +1,17 @@
|
||||
import { FC, useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import Button from '../../../components/Button'
|
||||
import DefaulModal from '../../../components/DefaulModal'
|
||||
import UploadBox from '../../../components/UploadBox'
|
||||
import Select from '../../../components/Select'
|
||||
import Button from '../../../../components/Button'
|
||||
import DefaulModal from '../../../../components/DefaulModal'
|
||||
import UploadBox from '../../../../components/UploadBox'
|
||||
import Select from '../../../../components/Select'
|
||||
import { useFormik } from 'formik'
|
||||
import * as Yup from 'yup'
|
||||
import { toast } from 'react-toastify'
|
||||
import { TickCircle } from 'iconsax-react'
|
||||
import { useCreateIcon, useGetGroupIcons } from '../hooks/useIconData'
|
||||
import { useSingleUpload } from '../../service/hooks/useServiceData'
|
||||
import { useCreateIcon, useGetGroupIcons } from '../../hooks/useIconData'
|
||||
import { useSingleUpload } from '../../../service/hooks/useServiceData'
|
||||
import { CreateIconType, GroupIconType } from '../types/Types'
|
||||
import { ErrorType } from '../../../helpers/types'
|
||||
import { ErrorType } from '../../../../helpers/types'
|
||||
|
||||
interface CreateIconProps {
|
||||
open: boolean
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IResponse } from "../../../types/response.types";
|
||||
import { IResponse } from "../../../../types/response.types";
|
||||
|
||||
export type CreateGroupIconType = {
|
||||
name: string;
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
CreateIconType,
|
||||
GroupIconsResponse,
|
||||
IconsResponse,
|
||||
} from "../types/Types";
|
||||
} from "../icon/types/Types";
|
||||
|
||||
export const getIcons = async (): Promise<IconsResponse> => {
|
||||
const { data } = await axios.get("/admin/dmenu/icons");
|
||||
Reference in New Issue
Block a user