This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<code_scheme name="Gutenberg" version="173"> | |
<HTMLCodeStyleSettings> | |
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" /> | |
</HTMLCodeStyleSettings> | |
<JSCodeStyleSettings> | |
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" /> | |
<option name="SPACES_WITHIN_IMPORTS" value="true" /> | |
<option name="SPACES_WITHIN_INTERPOLATION_EXPRESSIONS" value="true" /> | |
</JSCodeStyleSettings> | |
<PHPCodeStyleSettings> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const listCountries = () => { | |
return [ | |
{ | |
name: 'Afghanistan', | |
code: 'AF', | |
capital: 'Kabul', | |
region: 'AS', | |
currency: { | |
code: 'AFN', | |
name: 'Afghan afghani', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* WordPress dependencies | |
*/ | |
import { createPortal, useEffect, useState } from '@wordpress/element'; | |
import { registerPlugin } from '@wordpress/plugins'; | |
import { Button } from '@wordpress/components'; | |
function MyToolbarButton() { | |
// Lazy and one time initializations, also gives us a stable reference. | |
const [ container ] = useState( () => { |
OlderNewer