diff --git a/src/viser/client/src/ControlPanel/BottomPanel.tsx b/src/viser/client/src/ControlPanel/BottomPanel.tsx index 8be1ce2ac..71128e75f 100644 --- a/src/viser/client/src/ControlPanel/BottomPanel.tsx +++ b/src/viser/client/src/ControlPanel/BottomPanel.tsx @@ -8,6 +8,7 @@ const BottomPanelContext = React.createContext void; }>(null); +/** A bottom panel is used to display the controls on mobile devices. */ export default function BottomPanel({ children, }: { @@ -77,6 +78,7 @@ BottomPanel.Handle = function BottomPanelHandle({ ); }; + /** Contents of a panel. */ BottomPanel.Contents = function BottomPanelContents({ children, diff --git a/src/viser/client/src/ControlPanel/FloatingPanel.tsx b/src/viser/client/src/ControlPanel/FloatingPanel.tsx index fae67663f..aa688e5d1 100644 --- a/src/viser/client/src/ControlPanel/FloatingPanel.tsx +++ b/src/viser/client/src/ControlPanel/FloatingPanel.tsx @@ -24,8 +24,7 @@ const FloatingPanelContext = React.createContext; }>(null); -/** Root component for control panel. Parents a set of control tabs. - * This could be refactored+cleaned up a lot! */ +/** A floating panel for displaying controls. */ export default function FloatingPanel({ children, }: { @@ -289,7 +288,8 @@ FloatingPanel.Contents = function FloatingPanelContents({ {children} diff --git a/src/viser/client/src/ControlPanel/SidebarPanel.tsx b/src/viser/client/src/ControlPanel/SidebarPanel.tsx index 5eb8ed4b9..c3aebd97b 100644 --- a/src/viser/client/src/ControlPanel/SidebarPanel.tsx +++ b/src/viser/client/src/ControlPanel/SidebarPanel.tsx @@ -10,8 +10,7 @@ export const SidebarPanelContext = React.createContext void; }>(null); -/** Root component for control panel. Parents a set of control tabs. - * This could be refactored+cleaned up a lot! */ +/** A fixed or collapsible side panel for displaying controls. */ export default function SidebarPanel({ children, collapsible, @@ -73,7 +72,8 @@ export default function SidebarPanel({ }} > {children}