From e05e332055c729927445b77d838fe0d1f01f037a Mon Sep 17 00:00:00 2001 From: Enej Bajgoric Date: Wed, 1 Sep 2021 06:55:37 -0700 Subject: [PATCH] Destructure props for readability --- packages/block-library/src/pullquote/figure.native.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/block-library/src/pullquote/figure.native.js b/packages/block-library/src/pullquote/figure.native.js index a4d60d235c4254..c95e188cd3c39c 100644 --- a/packages/block-library/src/pullquote/figure.native.js +++ b/packages/block-library/src/pullquote/figure.native.js @@ -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