From 51d54fdd916b8c87f9e275f7b262055a642df899 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 19 Oct 2021 15:24:55 -0300 Subject: fixed missing styles --- .../anastasis-webui/src/context/translation.ts | 2 +- .../src/pages/home/AuthMethodPostSetup.tsx | 2 +- .../src/pages/home/ReviewPoliciesScreen.tsx | 3 +- packages/anastasis-webui/src/pages/home/index.tsx | 5 +-- packages/anastasis-webui/src/pages/home/style.css | 25 -------------- .../anastasis-webui/src/pages/notfound/style.css | 4 --- .../anastasis-webui/src/pages/profile/style.css | 5 --- packages/anastasis-webui/src/scss/main.scss | 38 ++++++++++++++++++++++ packages/anastasis-webui/src/style/index.css | 20 ------------ 9 files changed, 44 insertions(+), 60 deletions(-) (limited to 'packages') diff --git a/packages/anastasis-webui/src/context/translation.ts b/packages/anastasis-webui/src/context/translation.ts index f724c6918..5ceb5d428 100644 --- a/packages/anastasis-webui/src/context/translation.ts +++ b/packages/anastasis-webui/src/context/translation.ts @@ -52,7 +52,7 @@ export const TranslationProvider = ({ initial, children, forceLang }: Props): VN changeLanguage(forceLang) } }) - const handler = new jedLib.Jed(strings[lang]); + const handler = new jedLib.Jed(strings[lang] || strings['en']); return h(Context.Provider, { value: { lang, handler, changeLanguage }, children }); } diff --git a/packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx b/packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx index b58a5f57d..55e37a968 100644 --- a/packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx +++ b/packages/anastasis-webui/src/pages/home/AuthMethodPostSetup.tsx @@ -33,7 +33,7 @@ export function AuthMethodPostSetup(props: AuthMethodSetupProps): VNode { }; return ( -
{/* class={style.home} */} +

Add {props.method} authentication

diff --git a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx index b898bb39e..3e20538d2 100644 --- a/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx +++ b/packages/anastasis-webui/src/pages/home/ReviewPoliciesScreen.tsx @@ -12,8 +12,7 @@ export function ReviewPoliciesScreen(props: BackupReducerProps): VNode { .map((x, i) => authMethods[x.authentication_method].type) .join(" + "); return ( -

- {/*
*/} +

Policy #{i + 1}: {policyName}

diff --git a/packages/anastasis-webui/src/pages/home/index.tsx b/packages/anastasis-webui/src/pages/home/index.tsx index ab63553c1..6e9ea07fc 100644 --- a/packages/anastasis-webui/src/pages/home/index.tsx +++ b/packages/anastasis-webui/src/pages/home/index.tsx @@ -27,6 +27,7 @@ import { SecretSelectionScreen } from "./SecretSelectionScreen"; import { SolveScreen } from "./SolveScreen"; import { StartScreen } from "./StartScreen"; import { TruthsPayingScreen } from "./TruthsPayingScreen"; +import "./../home/style" const WithReducer = createContext(undefined); @@ -89,7 +90,7 @@ export function AnastasisClientFrame(props: AnastasisClientFrameProps): VNode { return (
-
handleKeyPress(e)}> {/* class={style.home} */} +
handleKeyPress(e)}>

{props.title}

@@ -234,7 +235,7 @@ function ErrorBanner(props: ErrorBannerProps): VNode | null { const currentError = props.reducer.currentError; if (currentError) { return ( -
{/* style.error */} +

Error: {JSON.stringify(currentError)}