delete login page

This commit is contained in:
Samandar Turgunboyev
2025-12-16 08:58:05 +05:00
parent 5c41a87e23
commit 9714213ebd
2 changed files with 9 additions and 12 deletions

View File

@@ -1,9 +1,9 @@
import Login from '@/widgets/auth/ui/login';
import Welcome from '@/widgets/welcome';
export default async function QrCode() {
return (
<div className="flex justify-center items-center h-screen">
<Login />
<Welcome />
</div>
);
}

View File

@@ -2,24 +2,21 @@
import Passport from '@/assets/passport.jpg';
import { getBoxes } from '@/shared/config/api/testApi';
import { useRouter } from '@/shared/config/i18n/navigation';
import { getToken } from '@/shared/lib/cookie';
import formatPhone from '@/shared/lib/formatPhone';
import { useQuery } from '@tanstack/react-query';
import Image from 'next/image';
import { useParams } from 'next/navigation';
import { useEffect } from 'react';
const Boxes = () => {
const { id } = useParams();
const token = getToken();
const navigate = useRouter();
// const token = getToken();
// const navigate = useRouter();
useEffect(() => {
if (!token) {
navigate.push('/boxes/qr-code');
}
}, [token]);
// useEffect(() => {
// if (!token) {
// navigate.push('/boxes/qr-code');
// }
// }, [token]);
const { data } = useQuery({
queryKey: ['boxes_detail', id],