mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 21:25:24 +03:00
Use link
This commit is contained in:
parent
593e2a52ea
commit
f793e01676
@ -9,6 +9,7 @@ import { useContext, useEffect, useMemo } from "react";
|
||||
import { FaCheck } from "react-icons/fa";
|
||||
import { IoIosWarning } from "react-icons/io";
|
||||
import { MdCircle } from "react-icons/md";
|
||||
import { Link } from "react-router-dom";
|
||||
import useSWR from "swr";
|
||||
|
||||
export default function Statusbar() {
|
||||
@ -130,7 +131,7 @@ export default function Statusbar() {
|
||||
);
|
||||
|
||||
if (link) {
|
||||
return <a href={link}>{message}</a>;
|
||||
return <Link to={link}>{message}</Link>;
|
||||
} else {
|
||||
return message;
|
||||
}
|
||||
|
||||
@ -13,6 +13,7 @@ import {
|
||||
StatusBarMessagesContext,
|
||||
StatusMessage,
|
||||
} from "@/context/statusbar-provider";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function Bottombar() {
|
||||
const navItems = useNavigation("secondary");
|
||||
@ -85,7 +86,7 @@ function StatusAlertNav() {
|
||||
);
|
||||
|
||||
if (link) {
|
||||
return <a href={link}>{message}</a>;
|
||||
return <Link to={link}>{message}</Link>;
|
||||
} else {
|
||||
return message;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user