From 84ffd7b59ae5723cfda9d2a9a3d55be2a5711375 Mon Sep 17 00:00:00 2001 From: lifeparticle Date: Wed, 25 Oct 2023 21:39:06 +1100 Subject: [PATCH] beam refactor --- ui/src/components/General/Beam/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/src/components/General/Beam/index.tsx b/ui/src/components/General/Beam/index.tsx index 89ade8a7..f1720203 100644 --- a/ui/src/components/General/Beam/index.tsx +++ b/ui/src/components/General/Beam/index.tsx @@ -12,8 +12,8 @@ interface BeamProps { const Beam: React.FC = ({ beamObject }) => { const [open, setOpen] = useState(false); - const [searchParams] = useSearchParams(); + const navigate = useNavigate(); if (beamObject.length === 0) return null; @@ -46,8 +46,6 @@ const Beam: React.FC = ({ beamObject }) => { return `${url}?${params}`; }; - const navigate = useNavigate(); - return (