Skip to content

Commit

Permalink
[RNMobile] Correct where appender condition is placed (#26203)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak authored Oct 16, 2020
1 parent 934483f commit e68d55a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/buttons/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default function ButtonsEdit( {
} ) {
const [ resizeObserver, sizes ] = useResizeObserver();
const [ maxWidth, setMaxWidth ] = useState( 0 );
const shouldRenderFooterAppender = isSelected || isInnerButtonSelected;
const { marginLeft: spacing } = styles.spacing;

const { getBlockOrder, isInnerButtonSelected, shouldDelete } = useSelect(
Expand Down Expand Up @@ -103,6 +102,8 @@ export default function ButtonsEdit( {
isEmbedButton: true,
};

const shouldRenderFooterAppender = isSelected || isInnerButtonSelected;

return (
<AlignmentHookSettingsProvider value={ alignmentHooksSetting }>
{ resizeObserver }
Expand Down

0 comments on commit e68d55a

Please sign in to comment.