group icon

This commit is contained in:
hamid zarghami
2025-12-16 11:52:25 +03:30
parent e7d775237d
commit 55e8068663
6 changed files with 166 additions and 7 deletions
+31 -2
View File
@@ -1,12 +1,41 @@
import { type FC } from 'react'
import { useState, type FC } from 'react'
import { useGetIcons } from './hooks/useIconData'
import { useTranslation } from 'react-i18next'
import Button from '../../components/Button'
import { Add } from 'iconsax-react'
const IconsList: FC = () => {
const { t } = useTranslation('global')
const [showModal, setShowModal] = useState<boolean>(false)
const { data: icons, isLoading, refetch } = useGetIcons()
const handleCloseModal = () => {
setShowModal(false)
refetch()
}
return (
<div>IconsList</div>
<div className='mt-4'>
<div className='flex justify-between items-center'>
<div>
{t('icon.list_icon')}
</div>
<Button
className='w-[172px]'
onClick={() => setShowModal(true)}
>
<div className='flex gap-2 items-center'>
<Add size={20} color='white' />
<div>
{t('icon.add_new_icon')}
</div>
</div>
</Button>
</div>
</div>
)
}