ifixkart-admin/New admin panel/ikixkart-dashboard/app/page.tsx
Adithiyan bbd3a3e959 feat: initial commit — full platform snapshot
- Backend: FastAPI app with all models, services, schemas, routes
- Admin Panel: Next.js dashboard with all modules
  (CRM, POS, repairs, warranties, billing, notifications, etc.)
- Ecommerce: storefront (submodule) + product catalog
- AI Agents: .agents/ skill library for Antigravity IDE
- Docs: architecture, billing, notification gateway markdown
- Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
2026-10-13 12:59:47 +05:30

24 lines
689 B
TypeScript

'use client';
import { useEffect } from 'react';
import { useRouter } from 'next/navigation';
import { getAccessToken } from '@/services/api/client';
export default function RootPage() {
const router = useRouter();
useEffect(() => {
const token = getAccessToken();
if (token) {
router.replace('/dashboard');
} else {
router.replace('/login');
}
}, [router]);
return (
<div className="min-h-screen flex items-center justify-center" style={{ backgroundColor: '#f4f7fe' }}>
<div className="w-8 h-8 border-3 border-t-transparent rounded-full animate-spin" style={{ borderColor: '#5BA4C7', borderTopColor: 'transparent' }} />
</div>
);
}