Skip to content

Commit

Permalink
chore: Pass reciept to submit vote button
Browse files Browse the repository at this point in the history
  • Loading branch information
garethfuller committed Jul 10, 2023
1 parent 853acbe commit 10c4b90
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
32 changes: 17 additions & 15 deletions src/components/contextual/pages/vebal/LMVoting/GaugeVoteModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -394,21 +394,6 @@ onMounted(() => {
</li>
</ul>
</div>
<BalAlert
v-if="voteWarning"
type="warning"
:title="voteWarning.title"
:description="voteWarning.description"
class="mb-4 w-full rounded"
/>
<BalAlert
v-if="voteError"
type="error"
:title="voteError.title"
:description="voteError.description"
block
class="mt-2 mb-4"
/>

<div
class="flex justify-between items-center p-2 mb-4 rounded-lg border dark:border-gray-800"
Expand Down Expand Up @@ -473,9 +458,26 @@ onMounted(() => {
</div>
</template>

<BalAlert
v-if="voteWarning"
type="warning"
:title="voteWarning.title"
:description="voteWarning.description"
class="my-2 w-full rounded"
/>
<BalAlert
v-if="voteError"
type="error"
:title="voteError.title"
:description="voteError.description"
block
class="mt-2 mb-4"
/>

<SubmitVoteBtn
:disabled="voteButtonDisabled"
:loading="transactionInProgress"
:receipt="voteState.receipt.value"
class="mt-4"
:loadingLabel="
voteState.state.value === State.TRANSACTION_INITIALIZED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { TransactionReceipt } from '@ethersproject/abstract-provider';
type Props = {
disabled: boolean;
loading: boolean;
receipt?: TransactionReceipt;
receipt?: TransactionReceipt | null;
};
/**
Expand Down

0 comments on commit 10c4b90

Please sign in to comment.