clean up a bunch of shit and use recoil to avoid the prop drilling

This commit is contained in:
talksik
2022-05-05 04:28:20 -05:00
parent 35899cf885
commit 4f8922678c
4 changed files with 35 additions and 36 deletions
@@ -41,3 +41,15 @@ export const $maxNumberActiveStreams = atom<number>({
key: "MAX_NUMBER_ACTIVE_STREAMS",
default: 0,
});
type DesktopMode = "flowState" | "overlayOnly" | "terminal" | "terminalDetails";
export const $desktopMode = atom<DesktopMode>({
key: "DESKTOP_MODE",
default: "terminal",
});
export const $selectedLineId = atom<string>({
key: "SELECTED_LINE_ID",
default: null,
});