We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1f76e4 commit fe2985cCopy full SHA for fe2985c
chartlets.js/src/demo/components/PanelsControl.tsx
@@ -2,12 +2,13 @@ import Checkbox from "@mui/material/Checkbox";
2
import FormControlLabel from "@mui/material/FormControlLabel";
3
import FormGroup from "@mui/material/FormGroup";
4
5
+import { useContributions } from "@/lib";
6
import { hidePanel } from "@/demo/actions/hidePanel";
7
import { showPanel } from "@/demo/actions/showPanel";
-import { usePanelStates } from "@/demo/hooks";
8
+import type { PanelState } from "@/demo/types";
9
10
function PanelsControl() {
- const panelStates = usePanelStates();
11
+ const panelStates = useContributions<PanelState>("panels");
12
if (!panelStates) {
13
// Ok, not ready yet
14
return null;
0 commit comments