Page MenuHomePhabricator

[native] replace back button with close button on the scanning QR code screen
ClosedPublic

Authored by kamil on Dec 16 2024, 3:27 AM.
Tags
None
Referenced Files
F5026136: D14159.diff
Mon, Mar 24, 9:30 AM
Unknown Object (File)
Fri, Mar 21, 7:10 AM
Unknown Object (File)
Mon, Mar 17, 6:32 PM
Unknown Object (File)
Mon, Mar 17, 6:31 AM
Unknown Object (File)
Mon, Mar 17, 6:31 AM
Unknown Object (File)
Mon, Mar 17, 6:31 AM
Unknown Object (File)
Mon, Mar 17, 6:31 AM
Unknown Object (File)
Feb 18 2025, 9:14 AM
Subscribers
None

Details

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil added inline comments.
native/account/qr-auth/qr-code-scanner-left-button.react.js
25–31 ↗(On Diff #46458)

Inspired by close button in CameraModal but instead of Text x I used icon.

kamil published this revision for review.Dec 16 2024, 3:40 AM
ashoat added inline comments.
native/account/qr-auth/qr-code-scanner-left-button.react.js
10–12 ↗(On Diff #46458)

It's a little weird that we're passing all of these props in but only using one. Should we just have a single prop instead? In that case we could potentially reuse this component, such as in CameraModal

25–31 ↗(On Diff #46458)

In CameraModal we actually use the text ×, not the text x. I'm okay with the icon instead, but I think either option is fine

This revision is now accepted and ready to land.Dec 16 2024, 6:10 AM
native/navigation/header-close-left-button.react.js
10–32 ↗(On Diff #46542)

This component is implemented like this because it is prepared to be used in CameraModal too (here).

I was struggling to make it work with and without forwardRef so for now I am creating a follow-up task to address this later and to not block the signed device list workstream: ENG-10029.

native/navigation/header-close-left-button.react.js
11 ↗(On Diff #46542)

This has to be optional because this is how it is defined in StackHeaderLeftButtonProps