Page MenuHomePhabricator

[native] Extract the buttons from the logged out modal
ClosedPublic

Authored by tomek on Nov 29 2024, 2:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 14, 6:27 AM
Unknown Object (File)
Fri, Jan 10, 8:09 PM
Unknown Object (File)
Thu, Jan 9, 2:56 PM
Unknown Object (File)
Thu, Jan 9, 2:56 PM
Unknown Object (File)
Thu, Jan 9, 2:56 PM
Unknown Object (File)
Thu, Jan 9, 2:56 PM
Unknown Object (File)
Thu, Jan 9, 2:55 PM
Unknown Object (File)
Mon, Jan 6, 4:53 PM
Subscribers

Details

Summary

These buttons will be used later in the stack. Use the primary buttons instead of the old styling.

Before

old-buttons.png (2×1 px, 1 MB)

After

new-buttons.png (2×1 px, 1 MB)

Depends on D14064

Test Plan

Check if the logged out modal still looks correct.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

native/account/logged-out-modal.react.js
181

This prop isn't needed - the button style already specifies it

native/account/logged-out-modal.react.js
561

We don't have a list of register buttons anymore so we don't need to set this key

tomek requested review of this revision.Nov 29 2024, 3:10 AM
This revision is now accepted and ready to land.Dec 2 2024, 1:09 AM
tomek added inline comments.
native/account/logged-out-modal.react.js
478–485 ↗(On Diff #46209)

We could use gap if we had RN 0.71.

tomek requested review of this revision.Dec 4 2024, 7:23 AM
native/account/logged-out-modal.react.js
458–463 ↗(On Diff #46209)

I wasn't sure if we should use the new design (consistent with the registration flow) or the old. If we decide to keep the old one, we can bring back the styling here, and use the PromptButton in the restoration flow.

In this revision, styles are updated, so leaving this @ashoat for review

This revision is now accepted and ready to land.Dec 7 2024, 12:54 PM