Skip to content

Commit

Permalink
Remove recipient section on amount scene
Browse files Browse the repository at this point in the history
  • Loading branch information
gemcoder21 committed Sep 23, 2024
1 parent 3728300 commit 89ab6da
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Gem/Asset/Scenes/AssetScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct AssetScene: View {
.frame(maxWidth: .infinity)
.textCase(nil)
.listRowSeparator(.hidden)
.listRowInsets(EdgeInsets())
.listRowInsets(.zero)

Section {
BannerView(banners: banners, action: onBannerAction, closeAction: onBannerClose)
Expand Down
14 changes: 8 additions & 6 deletions Gem/Charts/Scenes/ChartScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,14 @@ struct ChartScene: View {
ListItemView(title: $0.title, subtitle: $0.subtitle)
}
}
Section(Localized.Social.links) {
ForEach(details.socialUrls) { link in
NavigationOpenLink(
url: link.url,
with: ListItemView(title: link.type.name, image: link.type.image)
)
if !details.socialUrls.isEmpty {
Section(Localized.Social.links) {
ForEach(details.socialUrls) { link in
NavigationOpenLink(
url: link.url,
with: ListItemView(title: link.type.name, image: link.type.image)
)
}
}
}
}
Expand Down
1 change: 0 additions & 1 deletion Gem/Fiat/Scenes/BuyAssetScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ struct BuyAssetScene: View {
)
.frame(maxWidth: Spacing.scene.button.maxWidth)
}
.listSectionSpacing(.compact)
.padding(.bottom, Spacing.scene.bottom)
.background(Colors.grayBackground)
.frame(maxWidth: .infinity)
Expand Down
2 changes: 1 addition & 1 deletion Gem/Transfer/Scenes/AmountScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct AmountScene: View {

switch model.type {
case .transfer:
Section(Localized.Transfer.Recipient.title) {
Section {
FloatTextField(model.recipientField, text: $address, allowClean: false) {
HStack(spacing: Spacing.large/2) {
NameRecordView(
Expand Down
3 changes: 1 addition & 2 deletions Gem/Wallet/Scenes/WalletScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ struct WalletScene: View {
isPresentingSelectType = $0.selectType
}
.padding(.top, Spacing.small)
.padding(.bottom, Spacing.medium)
}
.frame(maxWidth: .infinity, alignment: .center)
.frame(maxWidth: .infinity)
.textCase(nil)
.listRowSeparator(.hidden)
.listRowInsets(.zero)
Expand Down

0 comments on commit 89ab6da

Please sign in to comment.