-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore: show unsupported error screen for gated content #37
Conversation
@saeedbashir please look on tests |
@@ -9,33 +9,37 @@ import SwiftUI | |||
import Core | |||
import Theme | |||
|
|||
struct UnknownView: View { | |||
public struct UnknownView: 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.
maybe better name is 'NotAvailableOnMobileView' or something like that?
.padding(.top, 12) | ||
StyledButton(CourseLocalization.NotAvaliable.button, action: { | ||
if let url = URL(string: url) { | ||
UIApplication.shared.open(url) |
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.
maybe check if canOpen url also?
guard let chapterIndex = chapterIndex else { return } | ||
guard let sequentialIndex else { return } | ||
guard let courseVertical = sequential.childs.first else { return } |
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.
Should we also display any toast error messages to the user in these possible cases?
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.
We will he handing gated content properly post MVP, so we will look into it as well.
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 👍
* chore: show unsupported error screen for gated content (#37) * chore: string auto-generating * chore: removed unused func * chore: update facebook sdk to solve open(url) issue --------- Co-authored-by: Saeed Bashir <[email protected]> Co-authored-by: Anton Yarmolenko <[email protected]>
This PR address the following Issue