Skip to content

Commit

Permalink
persist window element sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Feb 8, 2024
1 parent d09de3c commit 089e8ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/tabs/BoardsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import NewTabHome from "./NewTabHome";
import "react-mosaic-component/react-mosaic-component.css";

import "@/styles/react-mosaic.css";
import { atomWithStorage } from "jotai/utils";
import * as classes from "./BoardsPage.css";

export default function BoardsPage() {
Expand Down Expand Up @@ -271,7 +272,7 @@ interface WindowsState {
currentNode: MosaicNode<ViewId> | null;
}

const windowsStateAtom = atom<WindowsState>({
const windowsStateAtom = atomWithStorage<WindowsState>("windowsState", {
currentNode: {
direction: "row",
first: "left",
Expand Down

0 comments on commit 089e8ff

Please sign in to comment.