Skip to content

Commit

Permalink
add optionsAtom to manage state with Recoil
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshidwivedi committed Jun 18, 2024
1 parent ba99d0b commit eb3f9a4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions common/recoil/options/options.atoms.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {atom} from "recoil";

export const optionsAtom = atom<CtxOptions>({
key: "options",
default: {
lineColor : "#000000",
lineWidth: 5,
},
});

0 comments on commit eb3f9a4

Please sign in to comment.