id page update
This commit is contained in:
parent
a3c4565034
commit
b0856c986f
9 changed files with 8 additions and 48 deletions
Binary file not shown.
|
|
@ -1,7 +1,2 @@
|
|||
// app/lasers/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/laser-sources?id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
export { default } from "./lasers";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,2 @@
|
|||
// app/materials/materials-coatings/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/materials?t=materials-coatings&id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
export { default } from "./materials-coatings";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,2 @@
|
|||
// app/materials/materials/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/materials?t=materials&id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
export { default } from "./materials";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,2 @@
|
|||
// app/projects/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/projects?id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
export { default } from "./projects";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,2 @@
|
|||
// app/settings/co2-galvo/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/laser-settings?t=co2-galvo&id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
export { default } from "./co2-galvo";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,2 @@
|
|||
// app/settings/co2-gantry/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/laser-settings?t=co2-gantry&id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
export { default } from "./co2-gantry";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,2 @@
|
|||
// app/settings/fiber/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/laser-settings?t=fiber&id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
export { default } from "./fiber";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,2 @@
|
|||
// app/settings/uv/[id]/page.tsx
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
redirect(`/portal/laser-settings?t=uv&id=${encodeURIComponent(id)}`);
|
||||
}
|
||||
export { default } from "./uv";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue