test tank
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { basename } from './basename';
|
||||
import { Navigate } from 'react-router-dom';
|
||||
import { redirect } from '@tanstack/react-router';
|
||||
|
||||
export const Redirect = (({ to }) => {
|
||||
return <Navigate to={`${to}`} />;
|
||||
}) as any as typeof Navigate;
|
||||
export const Redirect = ({ to }: { to: string }) => {
|
||||
throw redirect({ to });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user