-
Notifications
You must be signed in to change notification settings - Fork 3
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
Jon/desktop-modal-x #232
Jon/desktop-modal-x #232
Conversation
aba28c0
to
e32fb97
Compare
e32fb97
to
53796ad
Compare
@@ -49,6 +50,8 @@ export async function retryOnChallenge<T, C>(opts: { | |||
|
|||
export const ChallengeModal = (props: Props) => { | |||
const { bridge, challengeUri } = props | |||
const { context } = useImports() | |||
const { isDesktop } = context |
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 commit is using something that's not defined yet. Can we move it later in the PR (or just drop it as per the other comment)?
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.
Dropped the commit
{!isDesktop ? null : ( | ||
<EdgeTouchableOpacity | ||
style={styles.closeIconContainer} | ||
onPress={handleCancel} | ||
> | ||
<AntDesignIcon | ||
name="close" | ||
color={theme.primaryText} | ||
size={theme.rem(1.25)} | ||
/> | ||
</EdgeTouchableOpacity> | ||
)} |
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.
It looks like the goal is to only show the close button on desktop? However, I think we need a close button on mobile too, since there is no other way to escape. The challenge HTML eats the scroll gesture, so swipe-to-close doesn't work, and there's no other exit button. Maybe we can just drop the commit.
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.
Dropped the commit
Minor difference: use `context` from GUI to determine `isDesktop` instead of the native dependency
53796ad
to
42e12ac
Compare
I've updated the task with th expectations for |
Minor difference: use
context
from GUI to determineisDesktop
instead of the native dependencySpun off some other component sync tasks to https://app.asana.com/0/1200972350208303/1209521068045186
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneDescription
none