From a82b5a6992fda61d6eaa0bb079e284805a394777 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 3 Nov 2021 17:30:11 -0300 Subject: feedback from meeting and editing policy --- .../src/pages/home/CountrySelectionScreen.tsx | 31 ---------------------- 1 file changed, 31 deletions(-) delete mode 100644 packages/anastasis-webui/src/pages/home/CountrySelectionScreen.tsx (limited to 'packages/anastasis-webui/src/pages/home/CountrySelectionScreen.tsx') diff --git a/packages/anastasis-webui/src/pages/home/CountrySelectionScreen.tsx b/packages/anastasis-webui/src/pages/home/CountrySelectionScreen.tsx deleted file mode 100644 index b64e1a096..000000000 --- a/packages/anastasis-webui/src/pages/home/CountrySelectionScreen.tsx +++ /dev/null @@ -1,31 +0,0 @@ -/* eslint-disable @typescript-eslint/camelcase */ -import { h, VNode } from "preact"; -import { useAnastasisContext } from "../../context/anastasis"; -import { AnastasisClientFrame, withProcessLabel } from "./index"; - -export function CountrySelectionScreen(): VNode { - const reducer = useAnastasisContext() - if (!reducer) { - return
no reducer in context
- } - if (!reducer.currentReducerState || !("countries" in reducer.currentReducerState)) { - return
invalid state
- } - const sel = (x: any): void => reducer.transition("select_country", { - country_code: x.code, - currencies: [x.currency], - }); - return ( - -
- {reducer.currentReducerState.countries!.map((x: any) => ( -
- -
- ))} -
-
- ); -} -- cgit v1.2.3