co2 galvo test UI cleanup and image fix
This commit is contained in:
parent
a76a6d1414
commit
29b5cac774
2 changed files with 31 additions and 15 deletions
|
|
@ -1,11 +1,12 @@
|
|||
// 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 CO2GalvoDetailStandalone() {
|
||||
const params = useParams<{ id: string }>();
|
||||
export default function CO2GalvoSettingDetailPage() {
|
||||
const { id } = useParams<{ id: string }>();
|
||||
const sp = useSearchParams();
|
||||
const edit = sp.get("edit") === "1";
|
||||
return <CO2GalvoDetail id={params.id} mode={edit ? "edit" : "view"} />;
|
||||
return <CO2GalvoDetail id={id} mode={edit ? "edit" : "view"} />;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue