Skip to content

Commit b08265b

Browse files
committed
fix: wrap SendFunds into NavigationWrapper
1 parent d4ad55d commit b08265b

File tree

2 files changed

+18
-22
lines changed

2 files changed

+18
-22
lines changed

src/components/NavigationWrapper.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
</v-container>
3535
</div>
3636
</template>
37+
3738
<script setup lang="ts">
3839
import AppToolbarCentered from '@/components/AppToolbarCentered.vue'
3940
import { computed, useSlots } from 'vue'
@@ -79,6 +80,9 @@ const title = computed(() => {
7980
case 'Transactions':
8081
case 'Transaction':
8182
return (route.params.txId as string) || t('transaction.transactions')
83+
case 'SendFunds':
84+
return t('home.send_btn')
85+
8286
default:
8387
return t('options.page_title')
8488
}

src/views/SendFunds.vue

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,30 @@
11
<template>
2-
<div :class="className" class="w-100">
3-
<app-toolbar-centered app :title="$t('home.send_btn')" flat absolute disable-max-width />
4-
5-
<v-container fluid class="px-0 py-0" :class="`${className}__content`">
6-
<v-row justify="center" no-gutters>
7-
<container padding disable-max-width>
8-
<send-funds-form
9-
class="pt-5"
10-
:crypto-currency="cryptoCurrency"
11-
:recipient-address="recipientAddress"
12-
:amount-to-send="amountToSend"
13-
:address-readonly="comeFromChat"
14-
:reply-to-id="$route.query.replyToId"
15-
@send="onSend"
16-
@error="onError"
17-
/>
18-
</container>
19-
</v-row>
20-
</v-container>
21-
</div>
2+
<navigation-wrapper :class="className">
3+
<send-funds-form
4+
class="pt-5"
5+
:crypto-currency="cryptoCurrency"
6+
:recipient-address="recipientAddress"
7+
:amount-to-send="amountToSend"
8+
:address-readonly="comeFromChat"
9+
:reply-to-id="$route.query.replyToId"
10+
@send="onSend"
11+
@error="onError"
12+
/>
13+
</navigation-wrapper>
2214
</template>
2315

2416
<script>
2517
import validateAddress from '@/lib/validateAddress'
2618
import { isNumeric } from '@/lib/numericHelpers'
2719
28-
import AppToolbarCentered from '@/components/AppToolbarCentered.vue'
2920
import SendFundsForm from '@/components/SendFundsForm.vue'
3021
import { AllCryptos } from '@/lib/constants/cryptos'
3122
import { vibrate } from '@/lib/vibrate'
23+
import NavigationWrapper from '@/components/NavigationWrapper.vue'
3224
3325
export default {
3426
components: {
35-
AppToolbarCentered,
27+
NavigationWrapper,
3628
SendFundsForm
3729
},
3830
data: () => ({

0 commit comments

Comments
 (0)