Add legacy passport redirect component
cgen-b83646d387444ed88768c08a5fcf0961
This commit is contained in:
parent
9c8f0f3b1a
commit
aa5619b8d8
1 changed files with 7 additions and 0 deletions
7
client/pages/LegacyPassportRedirect.tsx
Normal file
7
client/pages/LegacyPassportRedirect.tsx
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { Navigate, useParams } from "react-router-dom";
|
||||
|
||||
export default function LegacyPassportRedirect() {
|
||||
const { id } = useParams<{ id?: string }>();
|
||||
const target = id ? `/passport/${id}` : "/passport/me";
|
||||
return <Navigate to={target} replace />;
|
||||
}
|
||||
Loading…
Reference in a new issue