Skip to content

Commit

Permalink
Fix/release v0.0.22 (#709)
Browse files Browse the repository at this point in the history
* fix typo

* hiding another modal when each modal appeared

* fix styling on light theme

* fix on feedback
  • Loading branch information
sirius651 authored Mar 14, 2023
1 parent 9dc4f5e commit 1548979
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/common/Notification/NotificationBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default defineComponent({
padding-left: 12px;
padding-right: 12px;
margin-top: 8px;
word-break: break-all;
word-break: keep-all;
}
.btn--check {
width: 90%;
Expand Down
2 changes: 1 addition & 1 deletion src/components/dapp-staking/stake-manage/StakeForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<div class="row--box-warning">
<div class="column--title">
<span class="text--dot">・</span>
<span class="color--white"> {{ $t(warningMsg) }}</span>
<span> {{ $t(warningMsg) }}</span>
</div>
</div>
<div v-if="errMsg && currentAccount" class="row--box-error">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@
row-gap: 6px;
border: 1px solid $border-yellow;
padding: 8px 16px;
font-size: 14px;
font-weight: 500;
width: 344px;
border-radius: 6px;
background: $transparent-yellow;
color: $warning-yellow;
@media (min-width: $sm) {
width: 412px;
}
Expand Down Expand Up @@ -203,6 +206,9 @@
input {
color: white;
}
.row--box-warning {
color: $gray-1;
}
.row--box-error {
background: $box-red-dark;
}
Expand Down
17 changes: 15 additions & 2 deletions src/components/header/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
</connect-button>
</template>
<template v-else>
<account-button :account="currentAccount" @click="changeAccount" />
<account-button :account="currentAccount" @click="clickAccountBtn" />
</template>
<network-button @show-network="modalNetwork = true" />
<network-button @show-network="clickNetworkBtn" />
</header-comp>

<!-- Modals -->
<modal-network
v-if="modalNetwork"
v-model:isOpen="modalNetwork"
v-model:selectNetwork="currentNetworkIdx"
:network-idx="currentNetworkIdx"
Expand Down Expand Up @@ -110,6 +111,16 @@ export default defineComponent({
disconnectAccount,
} = useConnectWallet();
const clickAccountBtn = () => {
changeAccount();
stateModal.modalNetwork = false;
};
const clickNetworkBtn = () => {
stateModal.modalNetwork = true;
modalAccountSelect.value = false;
};
const store = useStore();
const currentNetworkIdx = computed(() => store.getters['general/networkIdx']);
const route = useRoute();
Expand Down Expand Up @@ -138,6 +149,8 @@ export default defineComponent({
modalAccountSelect,
width,
screenSize,
clickAccountBtn,
clickNetworkBtn,
setCloseModal,
setWalletModal,
openSelectModal,
Expand Down

0 comments on commit 1548979

Please sign in to comment.