aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-webui/src/pages/home
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-10-19 11:17:54 -0300
committerSebastian <sebasjm@gmail.com>2021-10-19 11:17:54 -0300
commitaac2bc389a32b2e91494d097a3f3fc9560ddbfbc (patch)
tree39516701b49f1b970b9989b7abf0445cd532e10d /packages/anastasis-webui/src/pages/home
parent5883d42d800c7b444c59d626bcaa5abca7dc83d0 (diff)
downloadwallet-core-aac2bc389a32b2e91494d097a3f3fc9560ddbfbc.tar.xz
fix some building errors
Diffstat (limited to 'packages/anastasis-webui/src/pages/home')
-rw-r--r--packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx3
-rw-r--r--packages/anastasis-webui/src/pages/home/AuthMethodEmailSetup.tsx3
-rw-r--r--packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx5
-rw-r--r--packages/anastasis-webui/src/pages/home/AuthMethodQuestionSetup.tsx3
-rw-r--r--packages/anastasis-webui/src/pages/home/AuthMethodSmsSetup.tsx3
-rw-r--r--packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx2
-rw-r--r--packages/anastasis-webui/src/pages/home/SolveScreen.tsx3
7 files changed, 14 insertions, 8 deletions
diff --git a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
index 4df99db9a..6f87a3358 100644
--- a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
@@ -1,7 +1,8 @@
/* eslint-disable @typescript-eslint/camelcase */
import { h, VNode } from "preact";
import { useState } from "preact/hooks";
-import { AnastasisReducerApi, ReducerStateRecovery, ReducerStateBackup } from "../../hooks/use-anastasis-reducer";
+import { ReducerStateRecovery, ReducerStateBackup } from "../../../../anastasis-core/lib";
+import { AnastasisReducerApi } from "../../hooks/use-anastasis-reducer";
import { AnastasisClientFrame, withProcessLabel, LabeledInput } from "./index";
export function AttributeEntryScreen(props: AttributeEntryProps): VNode {
diff --git a/packages/anastasis-webui/src/pages/home/AuthMethodEmailSetup.tsx b/packages/anastasis-webui/src/pages/home/AuthMethodEmailSetup.tsx
index 9aa6855fe..9567e0ef7 100644
--- a/packages/anastasis-webui/src/pages/home/AuthMethodEmailSetup.tsx
+++ b/packages/anastasis-webui/src/pages/home/AuthMethodEmailSetup.tsx
@@ -5,7 +5,8 @@ import {
} from "@gnu-taler/taler-util";
import { h, VNode } from "preact";
import { useState } from "preact/hooks";
-import { AuthMethodSetupProps, AnastasisClientFrame, LabeledInput } from "./index";
+import { AuthMethodSetupProps } from "./AuthenticationEditorScreen";
+import { AnastasisClientFrame, LabeledInput } from "./index";
export function AuthMethodEmailSetup(props: AuthMethodSetupProps): VNode {
const [email, setEmail] = useState("");
diff --git a/packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx b/packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx
index 43dcde330..b58a5f57d 100644
--- a/packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx
+++ b/packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx
@@ -5,7 +5,8 @@ import {
} from "@gnu-taler/taler-util";
import { h, VNode } from "preact";
import { useState } from "preact/hooks";
-import { AuthMethodSetupProps, LabeledInput } from "./index";
+import { AuthMethodSetupProps } from "./AuthenticationEditorScreen";
+import { LabeledInput } from "./index";
export function AuthMethodPostSetup(props: AuthMethodSetupProps): VNode {
const [fullName, setFullName] = useState("");
@@ -32,7 +33,7 @@ export function AuthMethodPostSetup(props: AuthMethodSetupProps): VNode {
};
return (
- <div class={style.home}>
+ <div > {/* class={style.home} */}
<h1>Add {props.method} authentication</h1>
<div>
<p>
diff --git a/packages/anastasis-webui/src/pages/home/AuthMethodQuestionSetup.tsx b/packages/anastasis-webui/src/pages/home/AuthMethodQuestionSetup.tsx
index 7a0da7ebf..7699cdf34 100644
--- a/packages/anastasis-webui/src/pages/home/AuthMethodQuestionSetup.tsx
+++ b/packages/anastasis-webui/src/pages/home/AuthMethodQuestionSetup.tsx
@@ -5,7 +5,8 @@ import {
} from "@gnu-taler/taler-util";
import { h, VNode } from "preact";
import { useState } from "preact/hooks";
-import { AuthMethodSetupProps, AnastasisClientFrame, LabeledInput } from "./index";
+import { AuthMethodSetupProps } from "./AuthenticationEditorScreen";
+import { AnastasisClientFrame, LabeledInput } from "./index";
export function AuthMethodQuestionSetup(props: AuthMethodSetupProps): VNode {
const [questionText, setQuestionText] = useState("");
diff --git a/packages/anastasis-webui/src/pages/home/AuthMethodSmsSetup.tsx b/packages/anastasis-webui/src/pages/home/AuthMethodSmsSetup.tsx
index d193f6eb7..6f4797275 100644
--- a/packages/anastasis-webui/src/pages/home/AuthMethodSmsSetup.tsx
+++ b/packages/anastasis-webui/src/pages/home/AuthMethodSmsSetup.tsx
@@ -5,7 +5,8 @@ import {
} from "@gnu-taler/taler-util";
import { h, VNode } from "preact";
import { useState, useRef, useLayoutEffect } from "preact/hooks";
-import { AuthMethodSetupProps, AnastasisClientFrame } from "./index";
+import { AuthMethodSetupProps } from "./AuthenticationEditorScreen";
+import { AnastasisClientFrame } from "./index";
export function AuthMethodSmsSetup(props: AuthMethodSetupProps): VNode {
const [mobileNumber, setMobileNumber] = useState("");
diff --git a/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx b/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx
index 5357891a9..fc28942aa 100644
--- a/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/AuthenticationEditorScreen.tsx
@@ -94,7 +94,7 @@ export function AuthenticationEditorScreen(props: AuthenticationEditorProps): VN
);
}
-interface AuthMethodSetupProps {
+export interface AuthMethodSetupProps {
method: string;
addAuthMethod: (x: any) => void;
cancel: () => void;
diff --git a/packages/anastasis-webui/src/pages/home/SolveScreen.tsx b/packages/anastasis-webui/src/pages/home/SolveScreen.tsx
index 46ff8227d..357a7c2d3 100644
--- a/packages/anastasis-webui/src/pages/home/SolveScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/SolveScreen.tsx
@@ -1,11 +1,12 @@
import { h, VNode } from "preact";
-import { AnastasisReducerApi, ChallengeFeedback, ChallengeInfo } from "../../hooks/use-anastasis-reducer";
+import { AnastasisReducerApi } from "../../hooks/use-anastasis-reducer";
import { SolveEmailEntry } from "./SolveEmailEntry";
import { SolvePostEntry } from "./SolvePostEntry";
import { SolveQuestionEntry } from "./SolveQuestionEntry";
import { SolveSmsEntry } from "./SolveSmsEntry";
import { SolveUnsupportedEntry } from "./SolveUnsupportedEntry";
import { RecoveryReducerProps } from "./index";
+import { ChallengeInfo, ChallengeFeedback } from "../../../../anastasis-core/lib";
export function SolveScreen(props: RecoveryReducerProps): VNode {
const chArr = props.recoveryState.recovery_information!.challenges;