add toaster to live camera view

This commit is contained in:
Josh Hawkins 2024-12-28 22:29:03 -06:00
parent 14acca3a01
commit 4c3352223c

View File

@ -106,6 +106,7 @@ import { Label } from "@/components/ui/label";
import { Switch } from "@/components/ui/switch"; import { Switch } from "@/components/ui/switch";
import axios from "axios"; import axios from "axios";
import { toast } from "sonner"; import { toast } from "sonner";
import { Toaster } from "@/components/ui/sonner";
type LiveCameraViewProps = { type LiveCameraViewProps = {
config?: FrigateConfig; config?: FrigateConfig;
@ -368,6 +369,7 @@ export default function LiveCameraView({
return ( return (
<TransformWrapper minScale={1.0} wheel={{ smoothStep: 0.005 }}> <TransformWrapper minScale={1.0} wheel={{ smoothStep: 0.005 }}>
<Toaster position="top-center" closeButton={true} />
<div <div
ref={mainRef} ref={mainRef}
className={ className={