Skip to content

Commit

Permalink
Fix: Remove unrequired code from BorderControl documentation. (#54348)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored Sep 11, 2023
1 parent c10b0f6 commit 375c582
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ const colors = [

const MyBorderControl = () => {
const [ border, setBorder ] = useState();
const onChange = ( newBorder ) => setBorder( newBorder );

return (
<BorderControl
colors={ colors }
label={ __( 'Border' ) }
onChange={ onChange }
onChange={ setBorder }
value={ border }
/>
);
Expand Down

1 comment on commit 375c582

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 375c582.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6147348927
📝 Reported issues:

Please sign in to comment.