diff options
author | Sebastian <sebasjm@gmail.com> | 2021-11-24 17:38:39 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-11-24 17:38:39 -0300 |
commit | f49df12b441a2bd06520df42ddd41fc42f639147 (patch) | |
tree | 13a3f9a5cecb5df234ceec1149bd794b2f03ea73 /packages/anastasis-webui/src/pages/home | |
parent | 668c0430c204c1233fc266b723ed1be308d5f3f1 (diff) | |
download | wallet-core-f49df12b441a2bd06520df42ddd41fc42f639147.tar.xz |
restore and save session
Diffstat (limited to 'packages/anastasis-webui/src/pages/home')
-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> |