removing junk files from app/settings/ and removing double details
This commit is contained in:
parent
29b5cac774
commit
f0ba821501
4 changed files with 68 additions and 50 deletions
|
|
@ -1,12 +0,0 @@
|
|||
// app/settings/co2-galvo/[id]/co2-galvo.tsx
|
||||
"use client";
|
||||
|
||||
import { useParams, useSearchParams } from "next/navigation";
|
||||
import CO2GalvoDetail from "@/components/details/CO2GalvoDetail";
|
||||
|
||||
export default function CO2GalvoSettingDetailPage() {
|
||||
const { id } = useParams<{ id: string }>();
|
||||
const sp = useSearchParams();
|
||||
const edit = sp.get("edit") === "1";
|
||||
return <CO2GalvoDetail id={id} mode={edit ? "edit" : "view"} />;
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import { Suspense } from "react";
|
||||
|
||||
export default function Layout({ children }: { children: React.ReactNode }) {
|
||||
return <Suspense fallback={null}>{children}</Suspense>;
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
"use client";
|
||||
import CO2GalvoList from "@/components/lists/CO2GalvoList";
|
||||
|
||||
export default function CO2GalvoSettingsPageStandalone() {
|
||||
return (
|
||||
<div className="p-6 max-w-7xl mx-auto space-y-4">
|
||||
<CO2GalvoList
|
||||
linkFor={(sid, opts) =>
|
||||
opts?.edit ? `/settings/co2-galvo/${sid}?edit=1` : `/settings/co2-galvo/${sid}`
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue