Skip to content

Commit

Permalink
Simplify FooterMessageCell
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak committed Aug 7, 2020
1 parent b9d5212 commit 97a790f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
21 changes: 2 additions & 19 deletions packages/components/src/footer-message-control/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,8 @@
*/
import FooterMessageCell from '../mobile/bottom-sheet/footer-message-cell';

function FooterMessageControl( {
label,
help,
instanceId,
className,
...props
} ) {
const id = `inspector-footer-message-control-${ instanceId }`;

return (
<FooterMessageCell
label={ label }
id={ id }
help={ help }
className={ className }
aria-describedby={ !! help ? id + '__help' : undefined }
{ ...props }
/>
);
function FooterMessageControl( { ...props } ) {
return <FooterMessageCell { ...props } />;
}

export default FooterMessageControl;
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { withPreferredColorScheme } from '@wordpress/compose';
* Internal dependencies
*/
import Cell from './cell';
import styles from './styles.scss';
import styles from './styles';

function FooterMessageCell( props ) {
return (
Expand Down

0 comments on commit 97a790f

Please sign in to comment.