-comments
This commit is contained in:
parent
0ac5dba088
commit
e3460de331
@ -136,6 +136,7 @@ export interface DiscoveryUiState {
|
||||
|
||||
export interface AnastasisReducerApi {
|
||||
currentReducerState: ReducerState | undefined;
|
||||
// FIXME: Explain better!
|
||||
currentError: any;
|
||||
discoveryState: DiscoveryUiState;
|
||||
dismissError: () => void;
|
||||
|
@ -48,6 +48,7 @@ export function ContinentSelectionScreen(): VNode {
|
||||
const selectCountryAction = async () => {
|
||||
// selection should be when the select box changes it value
|
||||
if (!theCountry) return;
|
||||
// FIXME: Why is there no await?
|
||||
reducer.transition("select_country", {
|
||||
country_code: countryCode,
|
||||
});
|
||||
@ -56,6 +57,7 @@ export function ContinentSelectionScreen(): VNode {
|
||||
// const step1 = reducer.currentReducerState.backup_state === BackupStates.ContinentSelecting ||
|
||||
// reducer.currentReducerState.recovery_state === RecoveryStates.ContinentSelecting;
|
||||
|
||||
// FIXME: i18n
|
||||
const errors = !theCountry ? "Select a country" : undefined;
|
||||
|
||||
const handleBack = async () => {
|
||||
|
@ -228,6 +228,8 @@ function AnastasisClientImpl(): VNode {
|
||||
return <StartScreen />;
|
||||
}
|
||||
|
||||
// FIXME: Use switch statements here!
|
||||
|
||||
if (
|
||||
(state.reducer_type === "backup" &&
|
||||
state.backup_state === BackupStates.ContinentSelecting) ||
|
||||
|
Loading…
Reference in New Issue
Block a user