fix deploy

This commit is contained in:
hamid zarghami
2025-04-23 12:31:55 +03:30
parent c5a4e124c5
commit 22844c71f1
+7 -4
View File
@@ -102,8 +102,10 @@ const SideBar: FC = () => {
</div>
{
!isLogin &&
{typeof window !== 'undefined' && (
(() => {
if (!isLogin)
return (
<div className='flex-1 flex items-end justify-center px-12'>
<Link className='w-full' href={`${LOGIN_URL}?redirect=${encodeURIComponent(window.location.href)}`}>
<Button
@@ -111,8 +113,9 @@ const SideBar: FC = () => {
/>
</Link>
</div>
}
)
})()
)}
</div>
</div>