private route go to login page + direct login in dev
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user