fix deploy bug
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
VITE_TOKEN_NAME = 'dsc_token'
|
VITE_TOKEN_NAME = 'dsc_token'
|
||||||
VITE_REFRESH_TOKEN_NAME = 'dsc_refresh_token'
|
VITE_REFRESH_TOKEN_NAME = 'dsc_refresh_token'
|
||||||
VITE_BASE_URL = 'https://danak-dsc-api.run.danakcorp.com'
|
VITE_BASE_URL = 'https://api.danakcorp.com'
|
||||||
# VITE_BASE_URL = 'http://192.168.0.223:3500'
|
# VITE_BASE_URL = 'http://192.168.0.223:3500'
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { FC } from 'react'
|
import { FC, Fragment } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import Input from '../../components/Input'
|
import Input from '../../components/Input'
|
||||||
import Select from '../../components/Select'
|
import Select from '../../components/Select'
|
||||||
@@ -7,6 +7,7 @@ import { clx } from '../../helpers/utils'
|
|||||||
import { useNavigate } from 'react-router-dom'
|
import { useNavigate } from 'react-router-dom'
|
||||||
import { Pages } from '../../config/Pages'
|
import { Pages } from '../../config/Pages'
|
||||||
import { useGetAnnoncement } from './hooks/useAnnoncementData'
|
import { useGetAnnoncement } from './hooks/useAnnoncementData'
|
||||||
|
import PageLoading from '../../components/PageLoading'
|
||||||
|
|
||||||
const AnnouncementtList: FC = () => {
|
const AnnouncementtList: FC = () => {
|
||||||
|
|
||||||
@@ -49,67 +50,74 @@ const AnnouncementtList: FC = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='mt-8'>
|
{
|
||||||
<div onClick={handleChange} className={clx(
|
getAnnoncements.isPending ?
|
||||||
'p-4 rounded-2xl',
|
<PageLoading />
|
||||||
'bg-[#F8F9FB]'
|
:
|
||||||
)}>
|
<Fragment>
|
||||||
<div className='flex justify-between'>
|
<div className='mt-8'>
|
||||||
<div className='leading-6 text-xs xl:text-[12.5px] max-w-[70%]'>
|
<div onClick={handleChange} className={clx(
|
||||||
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ
|
'p-4 rounded-2xl',
|
||||||
</div>
|
'bg-[#F8F9FB]'
|
||||||
|
)}>
|
||||||
|
<div className='flex justify-between'>
|
||||||
|
<div className='leading-6 text-xs xl:text-[12.5px] max-w-[70%]'>
|
||||||
|
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ
|
||||||
|
</div>
|
||||||
|
|
||||||
<div className='flex gap-1'>
|
<div className='flex gap-1'>
|
||||||
<StatusWithText
|
<StatusWithText
|
||||||
variant='error'
|
variant='error'
|
||||||
text={t('announcement.important')}
|
text={t('announcement.important')}
|
||||||
/>
|
/>
|
||||||
<StatusWithText
|
<StatusWithText
|
||||||
variant='success'
|
variant='success'
|
||||||
text={t('announcement.new')}
|
text={t('announcement.new')}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='m-2 flex justify-between items-center text-[11px]'>
|
<div className='m-2 flex justify-between items-center text-[11px]'>
|
||||||
<div className='max-w-[70%] truncate text-description'>
|
<div className='max-w-[70%] truncate text-description'>
|
||||||
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ
|
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ
|
||||||
</div>
|
</div>
|
||||||
<div className='text-description'>
|
<div className='text-description'>
|
||||||
۱۴۰۳/۰۹/۲۴
|
۱۴۰۳/۰۹/۲۴
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div onClick={handleChange} className={clx(
|
<div onClick={handleChange} className={clx(
|
||||||
'p-4 rounded-2xl',
|
'p-4 rounded-2xl',
|
||||||
)}>
|
)}>
|
||||||
<div className='flex justify-between'>
|
<div className='flex justify-between'>
|
||||||
<div className='leading-6 text-xs xl:text-[12.5px] max-w-[70%]'>
|
<div className='leading-6 text-xs xl:text-[12.5px] max-w-[70%]'>
|
||||||
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ
|
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='flex gap-1'>
|
<div className='flex gap-1'>
|
||||||
<StatusWithText
|
<StatusWithText
|
||||||
variant='error'
|
variant='error'
|
||||||
text={t('announcement.important')}
|
text={t('announcement.important')}
|
||||||
/>
|
/>
|
||||||
<StatusWithText
|
<StatusWithText
|
||||||
variant='success'
|
variant='success'
|
||||||
text={t('announcement.new')}
|
text={t('announcement.new')}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='m-2 flex justify-between items-center text-[11px]'>
|
<div className='m-2 flex justify-between items-center text-[11px]'>
|
||||||
<div className='max-w-[70%] truncate text-description'>
|
<div className='max-w-[70%] truncate text-description'>
|
||||||
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ
|
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ
|
||||||
|
</div>
|
||||||
|
<div className='text-description'>
|
||||||
|
۱۴۰۳/۰۹/۲۴
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className='text-description'>
|
</Fragment>
|
||||||
۱۴۰۳/۰۹/۲۴
|
}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='flex-1 hidden xl:block bg-white py-7 px-5 rounded-2xl'>
|
<div className='flex-1 hidden xl:block bg-white py-7 px-5 rounded-2xl'>
|
||||||
|
|||||||
Reference in New Issue
Block a user