This commit is contained in:
hamid zarghami
2025-05-27 10:09:16 +03:30
parent 5788a01984
commit 6d1f69ba5e
2 changed files with 21 additions and 5 deletions
+2
View File
@@ -8,3 +8,5 @@ VITE_SERVICE_ID = '7e3c2f08-b7e7-4402-ae5f-fea99cff56bd'
VITE_WORKSPACE_ID = 'workspace_id' VITE_WORKSPACE_ID = 'workspace_id'
VITE_LOGIN_URL = 'https://console.danakcorp.com/auth/login' VITE_LOGIN_URL = 'https://console.danakcorp.com/auth/login'
# VITE_LOGIN_URL = 'http://localhost:5174/auth/login' # VITE_LOGIN_URL = 'http://localhost:5174/auth/login'
VITE_DZONE_URL = 'https://dzone.danakcorp.com'
+16 -2
View File
@@ -41,7 +41,7 @@ const Home: FC = () => {
{ {
getWorkspaces.data?.data?.workspaces?.map((item: workspaceItem) => { getWorkspaces.data?.data?.workspaces?.map((item: workspaceItem) => {
return ( return (
<div className={`p-6 min-w-[40%] xl:min-w-[15%] flex flex-col items-center xl:items-start flex-1 h-[178px] bg-white rounded-3xl cursor-pointer transition-all duration-300 hover:shadow-lg ${selectedWorkspace === item.id ? 'border border-black' : ''}`} <div className={`p-6 min-w-[40%] xl:min-w-[15%] flex flex-col items-center xl:items-start flex-1 bg-white rounded-3xl cursor-pointer transition-all duration-300 hover:shadow-lg ${selectedWorkspace === item.id ? 'border border-black' : ''}`}
onClick={() => handleChangeWorkspace(item.id)} onClick={() => handleChangeWorkspace(item.id)}
> >
<div className='mt-5'> <div className='mt-5'>
@@ -52,10 +52,24 @@ const Home: FC = () => {
{item.plan?.name} {item.plan?.name}
</div> </div>
<div className='mt-5 flex gap-1'> <div className='flex justify-between items-center mt-5 w-full'>
<div className=' flex gap-1'>
<div>تاریخ پایان: </div> <div>تاریخ پایان: </div>
<div className='text-description text-sm'>{moment(item?.endDate).format('jYYYY/jMM/jDD')}</div> <div className='text-description text-sm'>{moment(item?.endDate).format('jYYYY/jMM/jDD')}</div>
</div> </div>
</div>
<div className='mt-5 flex justify-end w-full'>
<a onClick={(e) => {
e.stopPropagation()
}} target='_blank' href={`${import.meta.env.VITE_DZONE_URL}/${item.slug}`}>
{`${import.meta.env.VITE_DZONE_URL}/${item.slug}`}
</a>
</div>
</div> </div>
) )
}) })