This commit is contained in:
@@ -4,6 +4,7 @@ import { Link } from 'react-router-dom'
|
||||
import { useDeleteAnnoncement, useGetAnnoncements } from './hooks/useAnnoncementData'
|
||||
import type { AnnoncementItemType } from './types/AnnoncementTypes'
|
||||
import Button from '../../components/Button'
|
||||
import RefreshButton from '@/components/RefreshButton'
|
||||
import { Add, Edit } from 'iconsax-react'
|
||||
import Table from '../../components/Table'
|
||||
import moment from 'moment-jalaali'
|
||||
@@ -100,7 +101,11 @@ const AnnouncementList: FC = () => {
|
||||
<div>
|
||||
{t('announcement.announcements')}
|
||||
</div>
|
||||
<div>
|
||||
<div className='flex items-center gap-3'>
|
||||
<RefreshButton
|
||||
onClick={() => getAnnoncements.refetch()}
|
||||
isLoading={getAnnoncements.isFetching}
|
||||
/>
|
||||
<Link to={Paths.announcement.create}>
|
||||
<Button className='px-5'>
|
||||
<div className='flex gap-2'>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { type FC, useEffect } from 'react'
|
||||
import Button from '../../components/Button'
|
||||
import BackButton from '@/components/BackButton'
|
||||
import { InfoCircle, TickCircle } from 'iconsax-react'
|
||||
import Input from '../../components/Input'
|
||||
import DatePickerComponent from '../../components/DatePicker'
|
||||
@@ -73,9 +74,7 @@ const Update: FC = () => {
|
||||
return (
|
||||
<div className='w-full mt-4'>
|
||||
<div className='flex w-full justify-between items-center'>
|
||||
<div>
|
||||
ویرایش اطلاعیه
|
||||
</div>
|
||||
<BackButton to={Paths.announcement.list} />
|
||||
<div>
|
||||
<Button
|
||||
className='px-5'
|
||||
|
||||
Reference in New Issue
Block a user