diff options
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/StartScreen.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/StartScreen.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/anastasis-webui/src/pages/home/StartScreen.tsx b/packages/anastasis-webui/src/pages/home/StartScreen.tsx index 8b24ef684..628ae4a34 100644 --- a/packages/anastasis-webui/src/pages/home/StartScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/StartScreen.tsx @@ -1,4 +1,6 @@ import { h, VNode } from "preact"; +import { FileInput } from "../../components/fields/FileInput"; +import { FileButton } from "../../components/FlieButton"; import { useAnastasisContext } from "../../context/anastasis"; import { AnastasisClientFrame } from "./index"; @@ -34,6 +36,15 @@ export function StartScreen(): VNode { <span>Recover a secret</span> </button> + <FileButton + label="Restore a session" + onChange={(content) => { + if (content?.type === "application/json") { + reducer.importState(content.content); + } + }} + /> + {/* <button class="button"> <div class="icon"><i class="mdi mdi-file" /></div> <span>Restore a session</span> |