Skip to content

Commit

Permalink
fix: rename class into className
Browse files Browse the repository at this point in the history
  • Loading branch information
himself65 committed Aug 23, 2022
1 parent 7d915c8 commit 2a2cfe3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/components/CopyToClipboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ export default class extends React.PureComponent {
if (this.state.copied) {
return (
<span>
<Clippy class='copy-icon' {...Theme(theme, 'copy-icon')} />
<Clippy className='copy-icon' {...Theme(theme, 'copy-icon')} />
<span {...Theme(theme, 'copy-icon-copied')}></span>
</span>
)
}

return <Clippy class='copy-icon' {...Theme(theme, 'copy-icon')} />
return <Clippy className='copy-icon' {...Theme(theme, 'copy-icon')} />
}

clipboardValue = value => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/ObjectKeyModal/ObjectKeyModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class extends React.PureComponent {
? (
<CheckCircle
{...Theme(theme, 'key-modal-submit')}
class='key-modal-submit'
className='key-modal-submit'
onClick={e => this.submit()}
/>
)
Expand All @@ -67,7 +67,7 @@ export default class extends React.PureComponent {
<span {...Theme(theme, 'key-modal-cancel')}>
<Cancel
{...Theme(theme, 'key-modal-cancel-icon')}
class='key-modal-cancel'
className='key-modal-cancel'
onClick={() => {
dispatcher.dispatch({
rjvId,
Expand Down
12 changes: 6 additions & 6 deletions src/components/ToggleIcons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ export function ExpandedIcon (props) {
return (
<ArrowDown
{...Theme(theme, 'expanded-icon')}
class='expanded-icon'
className='expanded-icon'
/>
)
case 'square':
return (
<SquareMinus
{...Theme(theme, 'expanded-icon')}
class='expanded-icon'
className='expanded-icon'
/>
)
default:
return (
<CircleMinus
{...Theme(theme, 'expanded-icon')}
class='expanded-icon'
className='expanded-icon'
/>
)
}
Expand All @@ -44,21 +44,21 @@ export function CollapsedIcon (props) {
return (
<ArrowRight
{...Theme(theme, 'collapsed-icon')}
class='collapsed-icon'
className='collapsed-icon'
/>
)
case 'square':
return (
<SquarePlus
{...Theme(theme, 'collapsed-icon')}
class='collapsed-icon'
className='collapsed-icon'
/>
)
default:
return (
<CirclePlus
{...Theme(theme, 'collapsed-icon')}
class='collapsed-icon'
className='collapsed-icon'
/>
)
}
Expand Down
12 changes: 6 additions & 6 deletions src/components/VariableEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class VariableEditor extends React.PureComponent {
}}
>
<Edit
class='click-to-edit-icon'
className='click-to-edit-icon'
{...Theme(theme, 'editVarIcon')}
onClick={() => {
this.prepopInput(variable)
Expand Down Expand Up @@ -199,7 +199,7 @@ class VariableEditor extends React.PureComponent {
}}
>
<Remove
class='click-to-remove-icon'
className='click-to-remove-icon'
{...Theme(theme, 'removeVarIcon')}
onClick={() => {
dispatcher.dispatch({
Expand Down Expand Up @@ -264,7 +264,7 @@ class VariableEditor extends React.PureComponent {
type='text'
inputRef={input => input && input.focus()}
value={editValue}
class='variable-editor'
className='variable-editor'
onChange={event => {
const value = event.target.value
const detected = parseInput(value)
Expand Down Expand Up @@ -300,14 +300,14 @@ class VariableEditor extends React.PureComponent {
/>
<div {...Theme(theme, 'edit-icon-container')}>
<Remove
class='edit-cancel'
className='edit-cancel'
{...Theme(theme, 'cancel-icon')}
onClick={() => {
this.setState({ editMode: false, editValue: '' })
}}
/>
<CheckCircle
class='edit-check string-value'
className='edit-check string-value'
{...Theme(theme, 'check-icon')}
onClick={() => {
this.submitEdit()
Expand Down Expand Up @@ -352,7 +352,7 @@ class VariableEditor extends React.PureComponent {
<div {...Theme(theme, 'detected-row')}>
{detected}
<CheckCircle
class='edit-check detected'
className='edit-check detected'
style={{
verticalAlign: 'top',
paddingLeft: '3px',
Expand Down
4 changes: 2 additions & 2 deletions src/components/VariableMeta.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class extends React.PureComponent {
}}
>
<Add
class='click-to-add-icon'
className='click-to-add-icon'
{...Theme(theme, 'addVarIcon')}
onClick={() => {
const request = {
Expand Down Expand Up @@ -82,7 +82,7 @@ export default class extends React.PureComponent {
}}
>
<Remove
class='click-to-remove-icon'
className='click-to-remove-icon'
{...Theme(theme, 'removeVarIcon')}
onClick={() => {
dispatcher.dispatch({
Expand Down

0 comments on commit 2a2cfe3

Please sign in to comment.