Skip to content

Commit fe2985c

Browse files
committed
Fix
1 parent a1f76e4 commit fe2985c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

chartlets.js/src/demo/components/PanelsControl.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ import Checkbox from "@mui/material/Checkbox";
22
import FormControlLabel from "@mui/material/FormControlLabel";
33
import FormGroup from "@mui/material/FormGroup";
44

5+
import { useContributions } from "@/lib";
56
import { hidePanel } from "@/demo/actions/hidePanel";
67
import { showPanel } from "@/demo/actions/showPanel";
7-
import { usePanelStates } from "@/demo/hooks";
8+
import type { PanelState } from "@/demo/types";
89

910
function PanelsControl() {
10-
const panelStates = usePanelStates();
11+
const panelStates = useContributions<PanelState>("panels");
1112
if (!panelStates) {
1213
// Ok, not ready yet
1314
return null;

0 commit comments

Comments
 (0)