Skip to content

Commit

Permalink
Destructure props for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
enejb committed Sep 1, 2021
1 parent a0737e0 commit e05e332
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/block-library/src/pullquote/figure.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import { usePreferredColorSchemeStyle } from '@wordpress/compose';
*/
import styles from './figure.scss';

export const Figure = ( props ) => {
const { children, backgroundColor, borderColor } = props;

export const Figure = ( { children, backgroundColor, borderColor } ) => {
const wpPullquoteFigure = usePreferredColorSchemeStyle(
styles.light,
styles.dark
Expand Down

0 comments on commit e05e332

Please sign in to comment.