(feat): move call context to zustand
(feat): add actions, basic call page
This commit is contained in:
parent
d01df7c02c
commit
413764f33e
17 changed files with 673 additions and 382 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { useCall } from "./context";
|
||||
import { useCall } from "./store";
|
||||
|
||||
import MainLayout from "./views/main/layout";
|
||||
import MainGrid from "./views/main/grid";
|
||||
|
|
@ -6,7 +6,7 @@ import MainFocused from "./views/main/focused";
|
|||
import Preview from "./views/preview";
|
||||
|
||||
export default function Screen() {
|
||||
const { view } = useCall();
|
||||
const view = useCall((state) => state.view);
|
||||
|
||||
return view === "preview" ? (
|
||||
<Preview />
|
||||
|
|
|
|||
Loading…
Reference in a new issue