-
Notifications
You must be signed in to change notification settings - Fork 16
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
feat: ZenLedger info #644
feat: ZenLedger info #644
Conversation
|
||
import SwiftUI | ||
|
||
struct MenuItem: View { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MenuItem
component corresponds to the Figma menu.item
component.
|
||
import SwiftUI | ||
|
||
struct TextIntro: View { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This corresponds to the Figma's text.intro
component.
|
||
import SwiftUI | ||
|
||
struct FeatureTopText: View { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This corresponds to the Figma's feature.top.text
component
TextIntro( | ||
icon: .custom("zenledger_large"), | ||
buttonLabel: NSLocalizedString("Export all transactions", comment: "ZenLedger"), | ||
action: { | ||
print("submit button tapped") | ||
} | ||
) { | ||
FeatureTopText( | ||
title: NSLocalizedString("Simplify your crypto taxes", comment: "ZenLedger"), | ||
text: NSLocalizedString("Connect your crypto wallets to the ZenLedger platform. Learn more and get started with your Dash Wallet transactions.", comment: "ZenLedger"), | ||
label: "zenledger.io", | ||
labelIcon: .custom("external.link"), | ||
linkAction: { | ||
openURL(URL(string: "https://app.zenledger.io/new_sign_up/")!) | ||
} | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copying and modifying this code would allow the implementation of any screen that's based on the text.intro
component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Issue being fixed or feature implemented
What was done?
DWToolsMenuViewController
migrated to Swift.ToolsMenuViewController
content is implemented in SwiftUI.How Has This Been Tested?
Breaking Changes
Checklist:
For repository code-owners and collaborators only