Skip to content

Commit

Permalink
Add constructing to showcase (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmattia authored Aug 23, 2022
1 parent 974fc8f commit 8f10fc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/flows/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const register = async (
return init(connection);
};

const renderConstructing = () => {
export const renderConstructing = (): void => {
const container = document.getElementById("pageContent") as HTMLElement;
render(constructingContent, container);
};
Expand Down
3 changes: 2 additions & 1 deletion src/frontend/src/showcase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { pickRecoveryDevice } from "./flows/recovery/pickRecoveryDevice";
import { phraseRecoveryPage } from "./flows/recovery/recoverWith/phrase";
import { displayPage } from "./flows/authenticate";
import { DeviceData } from "../generated/internet_identity_types";
import { register } from "./flows/register";
import { register, renderConstructing } from "./flows/register";

// A "dummy" connection which actually is just undefined, hoping pages won't call it
const dummyConnection = undefined as unknown as Connection;
Expand Down Expand Up @@ -57,6 +57,7 @@ const iiPages: Record<string, () => void> = {
authenticate: () => displayPage("https://nowhere.com", BigInt(10000)),
recoverWithPhrase: () =>
phraseRecoveryPage(userNumber, dummyConnection, recoveryPhrase),
constructing: () => renderConstructing(),
};

// The showcase
Expand Down

0 comments on commit 8f10fc8

Please sign in to comment.