Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
Update components
Browse files Browse the repository at this point in the history
  • Loading branch information
lukitsbrian committed Mar 3, 2021
1 parent 3e89422 commit 6f0c023
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 22 deletions.
10 changes: 5 additions & 5 deletions components/Modal/Action.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,27 +118,27 @@
v-if="[defaultStep, feeStep, signStep].includes(step)"
class="action-modal-group"
>
<Button
<CommonButton
id="closeBtn"
value="Cancel"
type="secondary"
@click.native="close"
/>
<Button
<CommonButton
v-if="requiresSignIn"
v-focus
value="Sign In"
type="primary"
@click.native="goToSession"
@click.enter.native="goToSession"
/>
<Button
<CommonButton
v-else-if="sending"
value="Sending..."
disabled="disabled"
type="primary"
/>
<Button
<CommonButton
v-else-if="step !== signStep"
ref="next"
type="primary"
Expand All @@ -147,7 +147,7 @@
:disabled="disabled || !balancesLoaded"
@click.native="validateChangeStep"
/>
<Button
<CommonButton
v-else
type="primary"
value="Send"
Expand Down
2 changes: 1 addition & 1 deletion components/Modal/Stake.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
type="number"
@keyup.enter.native="enterPressed"
/>
<Button
<CommonButton
type="button"
class="secondary addon-max"
value="Max"
Expand Down
2 changes: 1 addition & 1 deletion components/Modal/Unstake.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
type="number"
@keyup.enter.native="enterPressed"
/>
<Button
<CommonButton
type="button"
class="secondary addon-max"
value="Set Max"
Expand Down
2 changes: 1 addition & 1 deletion components/address/NewSeedStep.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</CommonFormGroup>
</div>
<div class="session-footer">
<Button value="Next" type="submit" />
<CommonButton value="Next" type="submit" />
</div>
</Form>
</template>
Expand Down
2 changes: 1 addition & 1 deletion components/address/PasswordStep.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
/>
</CommonFormGroup>
<div class="session-footer">
<Button value="Next" type="submit" />
<CommonButton value="Next" type="submit" />
</div>
</div>
</Form>
Expand Down
2 changes: 1 addition & 1 deletion components/common/UserMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</i>
</div>
<template v-else>
<Button
<CommonButton
value="Get Started"
class="menu-button"
type="secondary"
Expand Down
2 changes: 1 addition & 1 deletion components/governance/ParticipantList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</li>
</ul>
<div v-if="moreAvailable" class="loadmore-button-container">
<Button
<CommonButton
id="loadMoreBtn"
value="Load More"
type="secondary"
Expand Down
4 changes: 2 additions & 2 deletions components/governance/ProposalHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@

<div class="buttons">
<CopyButton :value="currentRoute" />
<Button
<CommonButton
v-if="status.value === governanceStatusEnum.DEPOSITING"
id="deposit-btn"
class="action-button"
value="Deposit"
color="primary"
@click.native="$emit(`open-deposit-modal`)"
/>
<Button
<CommonButton
v-if="status.value === governanceStatusEnum.VOTING"
id="vote-btn"
class="action-button"
Expand Down
2 changes: 1 addition & 1 deletion pages/explore/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</CommonFormGroup>
</div>
<div class="session-footer">
<Button value="Explore" />
<CommonButton value="Explore" />
</div>
</Form>
</template>
Expand Down
4 changes: 2 additions & 2 deletions pages/extension/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<h2 class="session-title">Lunie Browser Extension</h2>

<div v-if="!filteredAccounts.length && !initialized" class="session-main">
<Button
<CommonButton
value="Connect Lunie Extension"
:loading="loading"
@click.native="connect"
Expand All @@ -27,7 +27,7 @@
Below is a list of accounts we've received from the Lunie browser
extension.
</p>
<AccountList
<AddressAccountList
:accounts="filteredAccounts"
:button-action="signInAndRedirect"
:button-text="`Use Account`"
Expand Down
4 changes: 2 additions & 2 deletions pages/keplr/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h2 class="session-title">Keplr Browser Extension</h2>

<div v-if="!accounts.length && !initialized" class="session-main">
<Button
<CommonButton
value="Connect Keplr Extension"
:loading="loading"
@click.native="connect"
Expand Down Expand Up @@ -34,7 +34,7 @@
Below is a list of accounts we've received from the Keplr browser
extension.
</p>
<AccountList
<AddressAccountList
:accounts="accounts"
:button-action="signInAndRedirect"
:button-text="`Use Account`"
Expand Down
2 changes: 1 addition & 1 deletion pages/ledger/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</CommonCard>

<div class="session-main">
<Button
<CommonButton
value="Connect Ledger"
:loading="loading"
@click.native="connect"
Expand Down
2 changes: 1 addition & 1 deletion pages/signin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</CommonFormGroup>
</div>
<div class="session-footer">
<Button value="Sign In" :disabled="loading" />
<CommonButton value="Sign In" :disabled="loading" />
</div>
</Form>
</div>
Expand Down
4 changes: 2 additions & 2 deletions pages/validators/_address.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
</div>
</div>
<div class="action-buttons">
<Button :value="`Stake`" @click.native="openStakeModal" />
<Button
<CommonButton :value="`Stake`" @click.native="openStakeModal" />
<CommonButton
:disabled="!delegation"
:value="`Unstake`"
type="secondary"
Expand Down

0 comments on commit 6f0c023

Please sign in to comment.