From 71bae01fd4d7409ecb03549ddc5a519a7007faeb Mon Sep 17 00:00:00 2001 From: David Walker Date: Sun, 1 Jan 2023 01:10:06 -0800 Subject: [PATCH] BUG: Fix console error about bad ref use. (#278) --- src/Sidebar/ui/SidebarRoot.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sidebar/ui/SidebarRoot.tsx b/src/Sidebar/ui/SidebarRoot.tsx index f07fc448a..3bea96d98 100644 --- a/src/Sidebar/ui/SidebarRoot.tsx +++ b/src/Sidebar/ui/SidebarRoot.tsx @@ -55,9 +55,9 @@ import { InvitationsSeen } from "../../Faction/ui/FactionsRoot"; import { hash } from "../../hash/hash"; import { Locations } from "../../Locations/Locations"; -const RotatedDoubleArrowIcon = (props: { color: "primary" | "secondary" | "error" }) => ( +const RotatedDoubleArrowIcon = React.forwardRef((props: { color: "primary" | "secondary" | "error" }, __ref) => ( -); +)); const openedMixin = (theme: Theme): CSSObject => ({ width: theme.spacing(31),