private route go to login page + direct login in dev

This commit is contained in:
hamid zarghami
2026-06-13 10:53:44 +03:30
parent 0245e8d407
commit d573e8dc8d
5 changed files with 16 additions and 17 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ import { useCreateCatalog } from "@/pages/catalogue/hooks/useCatalogueData";
import { ArrowLeft, DocumentText } from "iconsax-react";
import { useState, type FC } from "react";
import { useNavigate } from "react-router-dom";
import DirectLogin from "../auth/components/DirectLogin";
const CATALOG_SIZES = [
{ id: "a4", label: "A4" },
@@ -51,7 +52,7 @@ const Home: FC = () => {
<div className="mt-4 w-full">
<div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
<h1 className="text-base font-light sm:text-lg">ساخت کاتالوگ به کمک ویرایشگر داناک</h1>
{/* <DirectLogin /> */}
{import.meta.env.DEV && <DirectLogin />}
</div>
<div className="mt-8 rounded-2xl bg-white p-4 sm:mt-12 sm:rounded-3xl sm:p-6 lg:mt-20 lg:rounded-4xl lg:p-10">