Skip to content

Commit

Permalink
Ceremony progress (#2989)
Browse files Browse the repository at this point in the history
  • Loading branch information
cor authored Sep 20, 2024
2 parents 2efaf0e + 4703f82 commit 759e290
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
12 changes: 6 additions & 6 deletions ceremony/src/lib/components/Ceremony.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ window.addEventListener("beforeunload", (e: BeforeUnloadEvent) => {

{#if !contributor.userWallet}
<Reward {contributor}/>
{:else if contributor.state === 'contributed'}
<Thanks {contributor}/>
{:else if contributor.clientState === 'offline'}
<Install {contributor}/>
{:else if !contributor.downloadedSecret}
<Download {contributor}/>
{:else if contributor.state === "inQueue"}
<Queue {contributor}/>
{:else if contributor.state === 'contribute'}
<H1>Starting contribution...</H1>
<H1>Starting contribution...</H1>
{:else if contributor.state === 'contributing'}
<H1>Contributing...</H1>
<H1>Contributing...</H1>
{:else if contributor.state === 'verifying'}
<H1>Verifying your contribution...</H1>
{:else if contributor.state === 'contributed'}
<Thanks {contributor}/>
<H1>Verifying your contribution...</H1>
{:else}
<H1>Not able to contribute at this time</H1>
<H1>Not able to contribute at this time</H1>
{/if}

</div>
Expand Down
11 changes: 3 additions & 8 deletions ceremony/src/lib/components/Code.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,7 @@ function handleKeyDown(event: KeyboardEvent, index: number) {
{/each}
</div>

{#if secondary}
<Button class="bg-transparent text-white hover:text-white border-2 border-white hover:bg-neutral-800" loading={codeLoading} type="button" onclick={handleCodeJoin}>

<Button variant={secondary ? "secondary" : "primary"} loading={codeLoading} type="button" onclick={handleCodeJoin}>
Redeem code
</Button>
{:else}
<Button loading={codeLoading} type="button" onclick={handleCodeJoin}>
Redeem code
</Button>
{/if}
</Button>

0 comments on commit 759e290

Please sign in to comment.