mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-26 05:39:04 +03:00
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:
@@ -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