-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[RNMobile] Prevent "Undo Level" after Setting Featured Image via Image Block #33057
Merged
Merged
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c5b3a9d
Ignore edits to featured image in undo history
34a092c
Merge branch 'trunk' into fix/featured-button-undo-redo-functionality
a75aa91
Merge branch 'trunk' into fix/featured-button-undo-redo-functionality
8c7f6d9
Merge branch 'trunk' into fix/featured-button-undo-redo-functionality
3611fa9
Add "featured image" section heading
958cbad
Add FooterMessageControl to settings
f574039
Tweak featured button styles
27f2623
Tweaks to footer text
89f15ac
Remove bottom border from button
47fb632
Merge branch 'trunk' into fix/featured-button-undo-redo-functionality
6ac5e79
Remove bottom padding from button
604db68
Align button and footer text to top
795f309
Add title style to "Featured Image" panel
fa0d455
Add top/bottom padding to button
a14cbe6
Merge branch 'trunk' into fix/featured-button-undo-redo-functionality
SiobhyB 658d005
Update function name
2856d5a
Update selector name
823df2b
Merge branch 'trunk' into fix/featured-button-undo-redo-functionality
5662508
Group FooterMessageControl into "Featured" panel
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I was wondering if we really need to have the footer message under a new panel body, if the purpose is to prevent rendering a separator, you could disable it by passing the prop
separatorType="none"
to theBottomSheet.Cell
components defined in thegetFeaturedButtonPanel
function. This way you could render theFooterMessageControl
component in the same panel body as the featured button.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.
You're right that there's no meaningful reason for the footer message to exist in its own panel body. I've gone ahead to move it within the featured panel in 5662508, and have removed the separator as per your suggestion. :)