Frontend update
This commit is contained in:
@@ -88,7 +88,7 @@ export default function ProductsPage() {
|
||||
}));
|
||||
};
|
||||
|
||||
// Handle input changes
|
||||
// Handle input changes
|
||||
const handleChange = (
|
||||
e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>
|
||||
) => setProductData({ ...productData, [e.target.name]: e.target.value });
|
||||
@@ -239,7 +239,6 @@ export default function ProductsPage() {
|
||||
onClick={() => setImportModalOpen(true)}
|
||||
variant="outline"
|
||||
className="gap-2"
|
||||
disabled={true}
|
||||
>
|
||||
<Upload className="h-4 w-4" />
|
||||
Import Products
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Inter } from "next/font/google"
|
||||
import "./globals.css"
|
||||
import { ThemeProvider } from "@/components/layout/theme-provider"
|
||||
import { Toaster } from "sonner"
|
||||
import type React from "react"
|
||||
import KeepOnline from "@/components/KeepOnline"
|
||||
|
||||
@@ -20,7 +21,12 @@ export default function RootLayout({
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body className={inter.className}>
|
||||
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem disableTransitionOnChange>
|
||||
<KeepOnline />
|
||||
<Toaster
|
||||
theme="dark"
|
||||
richColors
|
||||
position="top-right"
|
||||
/>
|
||||
<KeepOnline />
|
||||
{children}
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user