Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit e50a1f9

Browse files
committed
Prettier whitespace
1 parent 8d5af99 commit e50a1f9

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/edit.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ const edit = ({ attributes, className, setAttributes }) => {
5454
return (
5555
<>
5656
<InspectorControls key="controls">
57-
<PanelBody title={__('Settings')}>
57+
<PanelBody title={ __('Settings') }>
5858
<SelectControl
59-
label={__('Language')}
60-
value={attributes.language}
61-
options={[
59+
label={ __('Language') }
60+
value={ attributes.language }
61+
options={ [
6262
{
6363
label: __(
6464
'Select code language',
@@ -73,41 +73,41 @@ const edit = ({ attributes, className, setAttributes }) => {
7373
value: lang,
7474
})
7575
)
76-
)}
77-
onChange={(language) => setAttributes({ language })}
76+
) }
77+
onChange={ (language) => setAttributes({ language }) }
7878
/>
7979
<ToggleControl
80-
label={__('Show line numbers', 'code-syntax-block')}
81-
checked={attributes.lineNumbers}
82-
onChange={(lineNumbers) =>
80+
label={ __('Show line numbers', 'code-syntax-block') }
81+
checked={ attributes.lineNumbers }
82+
onChange={ (lineNumbers) =>
8383
setAttributes({ lineNumbers })
8484
}
8585
/>
8686
<TextControl
87-
label={__('Title for Code Block', 'code-syntax-block')}
88-
value={attributes.title}
89-
onChange={(title) => setAttributes({ title })}
90-
placeholder={__(
87+
label={ __('Title for Code Block', 'code-syntax-block') }
88+
value={ attributes.title }
89+
onChange={ (title) => setAttributes({ title }) }
90+
placeholder={ __(
9191
'Title or File (optional)',
9292
'code-syntax-block'
93-
)}
93+
) }
9494
/>
9595
</PanelBody>
9696
</InspectorControls>
97-
<div key="editor-wrapper" className={className}>
98-
{useLightBlockWrapper ? (
97+
<div key="editor-wrapper" className={ className }>
98+
{ useLightBlockWrapper ? (
9999
<Block.pre>
100100
<PlainText
101-
__experimentalVersion={2}
101+
__experimentalVersion={ 2 }
102102
tagName="code"
103-
{...plainTextProps}
103+
{ ...plainTextProps }
104104
/>
105105
</Block.pre>
106106
) : (
107-
<PlainText {...plainTextProps} />
108-
)}
109-
<div style={editorStyle} className="wp-block">
110-
{mkaz_code_syntax_languages[attributes.language]}
107+
<PlainText { ...plainTextProps } />
108+
) }
109+
<div style={ editorStyle } className="wp-block">
110+
{ mkaz_code_syntax_languages[attributes.language] }
111111
</div>
112112
</div>
113113
</>

0 commit comments

Comments
 (0)