forked from Github/frigate
Ui Tweaks (#10920)
* Cleanup live activity indicators for cameras * Rename to reviews and redirect events to reviews * Use reviews * Remove plural * Simplify recordings view * Adjust icon
This commit is contained in:
14
web/src/components/navigation/Redirect.tsx
Normal file
14
web/src/components/navigation/Redirect.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { useEffect } from "react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
type RedirectProps = {
|
||||
to: string;
|
||||
};
|
||||
export function Redirect({ to }: RedirectProps) {
|
||||
const navigate = useNavigate();
|
||||
|
||||
useEffect(() => {
|
||||
navigate(to);
|
||||
}, [to, navigate]);
|
||||
return <div />;
|
||||
}
|
||||
Reference in New Issue
Block a user