Skip to content

Commit

Permalink
[RNMobile] Renamed UnsupportedFooterControl to FooterMessageControl (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak authored Aug 7, 2020
1 parent 1179200 commit c6ded94
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 36 deletions.
10 changes: 10 additions & 0 deletions packages/components/src/footer-message-control/index.native.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* Internal dependencies
*/
import FooterMessageCell from '../mobile/bottom-sheet/footer-message-cell';

function FooterMessageControl( { ...props } ) {
return <FooterMessageCell { ...props } />;
}

export default FooterMessageControl;
2 changes: 1 addition & 1 deletion packages/components/src/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export { default as ToggleControl } from './toggle-control';
export { default as SelectControl } from './select-control';
export { default as RangeControl } from './range-control';
export { default as ResizableBox } from './resizable-box';
export { default as UnsupportedFooterControl } from './unsupported-footer-control';
export { default as FooterMessageControl } from './footer-message-control';
export { default as ColorControl } from './color-control';
export { default as QueryControls } from './query-controls';
export { default as Notice } from './notice';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ import { withPreferredColorScheme } from '@wordpress/compose';
import Cell from './cell';
import styles from './styles.scss';

function UnsupportedFooterCell( props ) {
const { ...cellProps } = props;

function FooterMessageCell( props ) {
return (
<Cell
{ ...cellProps }
{ ...props }
editable={ false }
value={ '' }
accessibilityRole={ 'text' }
Expand All @@ -22,4 +20,4 @@ function UnsupportedFooterCell( props ) {
);
}

export default withPreferredColorScheme( UnsupportedFooterCell );
export default withPreferredColorScheme( FooterMessageCell );
6 changes: 3 additions & 3 deletions packages/components/src/mobile/link-settings/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import BottomSheet from '../bottom-sheet';
import PanelBody from '../../panel/body';
import TextControl from '../../text-control';
import ToggleControl from '../../toggle-control';
import UnsupportedFooterControl from '../../unsupported-footer-control';
import FooterMessageControl from '../../footer-message-control';
import PanelActions from '../../panel/actions';
import LinkRelIcon from './link-rel';

Expand All @@ -46,7 +46,7 @@ function LinkSettings( {
// * linkLabel - uses `TextControl` component to set `attributes.label`
// * openInNewTab - uses `ToggleControl` component to set `attributes.linkTarget` and `attributes.rel`
// * linkRel - uses `TextControl` component to set `attributes.rel`
// * footer - uses `UnsupportedFooterControl` component to display message, e.g. about missing functionality
// * footer - uses `FooterMessageControl` component to display message, e.g. about missing functionality
// Available properties:
// * label - control component label, e.g. `Button Link URL`
// * placeholder - control component placeholder, e.g. `Add URL`
Expand Down Expand Up @@ -241,7 +241,7 @@ function LinkSettings( {
</PanelBody>
{ options.footer && (
<PanelBody style={ styles.linkSettingsPanel }>
<UnsupportedFooterControl label={ options.footer.label } />
<FooterMessageControl label={ options.footer.label } />
</PanelBody>
) }
{ actions && <PanelActions actions={ actions } /> }
Expand Down
27 changes: 0 additions & 27 deletions packages/components/src/unsupported-footer-control/index.native.js

This file was deleted.

0 comments on commit c6ded94

Please sign in to comment.