-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TRCL-3318 : Trading Rewards Details Screen Help Card (#38)
* show help card in trading rewards * add learn more action to card * add padding * update font size * add comment * fix expand/collapse behavior
- Loading branch information
Showing
17 changed files
with
317 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...ers/dydxPresenters/_v4/Profile/TradingRewards/Components/dydxRewardsHelpViewBuilder.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// dydxRewardsHelpViewBuilder.swift | ||
// dydxPresenters | ||
// | ||
// Created by Michael Maguire on 12/5/23. | ||
// | ||
|
||
import dydxViews | ||
import PlatformParticles | ||
import ParticlesKit | ||
import RoutingKit | ||
|
||
public protocol dydxRewardsHelpViewPresenterProtocol: HostedViewPresenterProtocol { | ||
var viewModel: dydxRewardsHelpViewModel? { get } | ||
} | ||
|
||
public class dydxRewardsHelpViewPresenter: HostedViewPresenter<dydxRewardsHelpViewModel>, dydxRewardsHelpViewPresenterProtocol { | ||
override init() { | ||
super.init() | ||
|
||
viewModel = dydxRewardsHelpViewModel() | ||
|
||
viewModel?.learnMoreTapped = { | ||
// TODO get url from abacus | ||
// Router.shared?.navigate(to: .init(url: ...), animated: true, completion: nil) | ||
} | ||
|
||
// TODO get todos from abacus | ||
viewModel?.faqs = [ | ||
.init(question: "What is the question?", answer: "The answer to your question is he answer to your question is The answer to your question is The answer to your question is "), | ||
.init(question: "What is the question if the question is the question about a question?", answer: "The answer to your question is he answer to your question is The answer to your question is The answer to your question is "), | ||
.init(question: "What is the question again?", answer: "The answer to your question is he answer to your question is The answer to your question is The answer to your question is "), | ||
.init(question: "What is the question again again again?", answer: "The answer to your question is he answer to your question is The answer to your question is The answer to your question is ") | ||
] | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
dydx/dydxViews/dydxViews/Media.xcassets/icon_collapse.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "icon_collapse.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.86 KB
dydx/dydxViews/dydxViews/Media.xcassets/icon_collapse.imageset/icon_collapse.pdf
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
dydx/dydxViews/dydxViews/Media.xcassets/icon_expand.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "icon_expand.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.83 KB
dydx/dydxViews/dydxViews/Media.xcassets/icon_expand.imageset/icon_expand.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.