Page MenuHomePhabricator

[native] Used predefined function for discard edit mode alert
ClosedPublic

Authored by kuba on Apr 28 2023, 2:22 AM.
Tags
None
Referenced Files
F1700510: D7680.diff
Sat, May 4, 1:12 PM
Unknown Object (File)
Mon, Apr 22, 12:01 PM
Unknown Object (File)
Mon, Apr 22, 12:01 PM
Unknown Object (File)
Mon, Apr 22, 12:01 PM
Unknown Object (File)
Mon, Apr 22, 12:01 PM
Unknown Object (File)
Mon, Apr 22, 11:58 AM
Unknown Object (File)
Feb 11 2024, 7:16 AM
Unknown Object (File)
Feb 11 2024, 7:16 AM
Subscribers

Details

Summary

Used function, instead of creating a new alert.

Test Plan

Checked if the alert still works.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat requested changes to this revision.Apr 28 2023, 5:45 AM
ashoat added inline comments.
native/chat/chat-input-bar.react.js
970 ↗(On Diff #25901)

I think "Are you sure?" is too generic of a title here. It doesn't clarify what the user is doing exactly

I think I prefer the copy on line 970 and 971, but with some changes:

Alert.alert(
  'Discard changes?',
  'You have unsaved changes which will be discarded if you navigate away.',
);

We can keep this change here, but can you update exitEditAlert to match this proposed new copy?

This revision now requires changes to proceed.Apr 28 2023, 5:45 AM

Changed discard alert content

This revision is now accepted and ready to land.May 11 2023, 8:42 AM