Skip to content

fix: only show send/receive buttons when there are wallets in the app #1467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 28 additions & 26 deletions apps/mobile/src/features/account/accounts-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,32 +56,34 @@ export function AccountsWidget() {
)}
</Box>
)}
<Box my="3" px="5" flexDirection="row" gap="2">
<ButtonV2
onPress={() => {
sendSheetRef.current?.present();
}}
minWidth={86}
size="sm"
buttonState="default"
title={t({
id: 'general.send',
message: `Send`,
})}
/>
<ButtonV2
onPress={() => {
receiveSheetRef.current?.present();
}}
minWidth={86}
size="sm"
buttonState="outline"
title={t({
id: 'general.receive',
message: `Receive`,
})}
/>
</Box>
{wallets.hasWallets && (
<Box my="3" px="5" flexDirection="row" gap="2">
<ButtonV2
onPress={() => {
sendSheetRef.current?.present();
}}
minWidth={86}
size="sm"
buttonState="default"
title={t({
id: 'general.send',
message: `Send`,
})}
/>
<ButtonV2
onPress={() => {
receiveSheetRef.current?.present();
}}
minWidth={86}
size="sm"
buttonState="outline"
title={t({
id: 'general.receive',
message: `Receive`,
})}
/>
</Box>
)}
</Box>
<Widget.Body>
<ScrollView
Expand Down
6 changes: 3 additions & 3 deletions apps/mobile/src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ msgstr "{name}"
msgid "configure_account.name.cell_caption"
msgstr "{name}"

#: src/features/account/accounts-widget.tsx:106
#: src/features/account/accounts-widget.tsx:108
msgid "accounts.account.cell_caption"
msgstr "{name}"

Expand Down Expand Up @@ -1233,7 +1233,7 @@ msgid "action_bar.receive_label"
msgstr "Receive"

#: src/features/account/account.tsx:113
#: src/features/account/accounts-widget.tsx:79
#: src/features/account/accounts-widget.tsx:80
msgid "general.receive"
msgstr "Receive"

Expand Down Expand Up @@ -1379,7 +1379,7 @@ msgid "action_bar.send_label"
msgstr "Send"

#: src/features/account/account.tsx:101
#: src/features/account/accounts-widget.tsx:67
#: src/features/account/accounts-widget.tsx:68
msgid "general.send"
msgstr "Send"

Expand Down
Loading