Merge pull request 'chore: update next.js version to ^16.3.5 in package.json' (#85) from Dev into production
Reviewed-on: #85
This commit was merged in pull request #85.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
import { useEffect, useState } from "react"
|
import { Suspense, useEffect, useState } from "react"
|
||||||
import { useParams, useSearchParams } from "next/navigation"
|
import { useParams, useSearchParams } from "next/navigation"
|
||||||
import { Briefcase, Download, Link2, Plus, ShieldCheck, Upload, User, X } from "lucide-react"
|
import { Briefcase, Download, Link2, Plus, ShieldCheck, Upload, User, X } from "lucide-react"
|
||||||
|
|
||||||
@@ -44,6 +44,14 @@ function money(n: number): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function EmployeeDetailPage() {
|
export default function EmployeeDetailPage() {
|
||||||
|
return (
|
||||||
|
<Suspense>
|
||||||
|
<EmployeeDetailPageContent />
|
||||||
|
</Suspense>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function EmployeeDetailPageContent() {
|
||||||
const params = useParams<{ id: string }>()
|
const params = useParams<{ id: string }>()
|
||||||
const searchParams = useSearchParams()
|
const searchParams = useSearchParams()
|
||||||
const employeeId = Number(params.id)
|
const employeeId = Number(params.id)
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ import { Button, buttonVariants } from "@/components/ui/button"
|
|||||||
import { Badge } from "@/components/ui/badge"
|
import { Badge } from "@/components/ui/badge"
|
||||||
import { Field, FieldError, FieldGroup, FieldLabel } from "@/components/ui/field"
|
import { Field, FieldError, FieldGroup, FieldLabel } from "@/components/ui/field"
|
||||||
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog"
|
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog"
|
||||||
|
import { FilterBar } from "@/components/ui/filter-bar"
|
||||||
import { PaginationFooter } from "@/components/ui/pagination-footer"
|
import { PaginationFooter } from "@/components/ui/pagination-footer"
|
||||||
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
|
||||||
import { Skeleton } from "@/components/ui/skeleton"
|
import { Skeleton } from "@/components/ui/skeleton"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
import { useEffect, useState } from "react"
|
import { Suspense, useEffect, useState } from "react"
|
||||||
import { useRouter, useSearchParams } from "next/navigation"
|
import { useRouter, useSearchParams } from "next/navigation"
|
||||||
import { Plus, Ruler, Tag } from "lucide-react"
|
import { Plus, Ruler, Tag } from "lucide-react"
|
||||||
|
|
||||||
@@ -26,6 +26,14 @@ type Tab = "brand" | "uom"
|
|||||||
const ALL_ITEMS_PAGE_SIZE = 500
|
const ALL_ITEMS_PAGE_SIZE = 500
|
||||||
|
|
||||||
export default function BrandsPage() {
|
export default function BrandsPage() {
|
||||||
|
return (
|
||||||
|
<Suspense>
|
||||||
|
<BrandsPageContent />
|
||||||
|
</Suspense>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function BrandsPageContent() {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const searchParams = useSearchParams()
|
const searchParams = useSearchParams()
|
||||||
const initialTab: Tab = searchParams.get("tab") === "uom" ? "uom" : "brand"
|
const initialTab: Tab = searchParams.get("tab") === "uom" ? "uom" : "brand"
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import { useAuth } from "@/components/auth/AuthProvider"
|
|||||||
import { useDashboardStats } from "@/hooks/use-dashboard-stats"
|
import { useDashboardStats } from "@/hooks/use-dashboard-stats"
|
||||||
import { Button, buttonVariants } from "@/components/ui/button"
|
import { Button, buttonVariants } from "@/components/ui/button"
|
||||||
import { FilterBar } from "@/components/ui/filter-bar"
|
import { FilterBar } from "@/components/ui/filter-bar"
|
||||||
|
import { PaginationFooter } from "@/components/ui/pagination-footer"
|
||||||
import { Field, FieldLabel } from "@/components/ui/field"
|
import { Field, FieldLabel } from "@/components/ui/field"
|
||||||
import { KpiRow } from "@/components/ui/kpi-row"
|
import { KpiRow } from "@/components/ui/kpi-row"
|
||||||
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ import {
|
|||||||
PieChart,
|
PieChart,
|
||||||
Receipt,
|
Receipt,
|
||||||
ReceiptText,
|
ReceiptText,
|
||||||
|
Ruler,
|
||||||
Scale,
|
Scale,
|
||||||
ScrollText,
|
ScrollText,
|
||||||
Settings,
|
Settings,
|
||||||
|
|||||||
Generated
+302
-289
File diff suppressed because it is too large
Load Diff
@@ -19,7 +19,7 @@
|
|||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"date-fns": "^4.4.0",
|
"date-fns": "^4.4.0",
|
||||||
"lucide-react": "^1.23.0",
|
"lucide-react": "^1.23.0",
|
||||||
"next": "16.2.10",
|
"next": "^16.3.5",
|
||||||
"next-themes": "^0.4.6",
|
"next-themes": "^0.4.6",
|
||||||
"react": "19.2.4",
|
"react": "19.2.4",
|
||||||
"react-chartjs-2": "^5.3.1",
|
"react-chartjs-2": "^5.3.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user