Create icon

This commit is contained in:
hamid zarghami
2025-12-16 12:26:27 +03:30
parent 55e8068663
commit e870b6bd59
7 changed files with 176 additions and 5 deletions
+6 -1
View File
@@ -3,12 +3,13 @@ import { useGetIcons } from './hooks/useIconData'
import { useTranslation } from 'react-i18next'
import Button from '../../components/Button'
import { Add } from 'iconsax-react'
import CreateIcon from './components/CreateIcon'
const IconsList: FC = () => {
const { t } = useTranslation('global')
const [showModal, setShowModal] = useState<boolean>(false)
const { data: icons, isLoading, refetch } = useGetIcons()
const { refetch } = useGetIcons()
const handleCloseModal = () => {
setShowModal(false)
@@ -35,6 +36,10 @@ const IconsList: FC = () => {
</Button>
</div>
<CreateIcon
open={showModal}
close={handleCloseModal}
/>
</div>
)
}