Remove pagination
This commit is contained in:
@@ -29,6 +29,12 @@ const MealTimesSection: FC<MealTimesSectionProps> = ({ formik }) => {
|
||||
return (
|
||||
<div className='mt-6'>
|
||||
<div className='text-sm mb-3'>وعدههای غذایی</div>
|
||||
<div className='text-xs text-gray-500 mb-3 bg-gray-50 p-3 rounded-lg border border-gray-200'>
|
||||
<div>ساعات 6 تا 11 صبح :صبحانه</div>
|
||||
<div>11 تا 15 ناهار</div>
|
||||
<div>15 تا 19 عصرانه</div>
|
||||
<div>18 تا 24 شام</div>
|
||||
</div>
|
||||
<div className='flex gap-6 flex-wrap'>
|
||||
{mealTypes.map((mealType) => (
|
||||
<div key={mealType.value} className='flex items-center gap-2'>
|
||||
|
||||
@@ -15,11 +15,8 @@ const ScheduleList: FC = () => {
|
||||
const { t } = useTranslation('global')
|
||||
const {
|
||||
filters,
|
||||
currentPage,
|
||||
apiParams,
|
||||
handleFiltersChange,
|
||||
handlePageChange,
|
||||
limit,
|
||||
handleFiltersChange
|
||||
} = useScheduleFilters()
|
||||
|
||||
const { data: schedulesData, isLoading } = useGetSchedules(apiParams)
|
||||
@@ -33,8 +30,6 @@ const ScheduleList: FC = () => {
|
||||
})
|
||||
const filterFields = useScheduleFiltersFields()
|
||||
|
||||
const totalPages = Math.ceil(schedules.length / limit) || 1
|
||||
|
||||
return (
|
||||
<div className='mt-5'>
|
||||
<div className='flex justify-between items-center'>
|
||||
@@ -62,11 +57,6 @@ const ScheduleList: FC = () => {
|
||||
columns={columns}
|
||||
data={schedules}
|
||||
isloading={isLoading}
|
||||
pagination={{
|
||||
currentPage,
|
||||
totalPages,
|
||||
onPageChange: handlePageChange,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user