Skip to content

Commit

Permalink
Apply linter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
imdanielsp committed Feb 4, 2021
1 parent 0ec198e commit 6b50e71
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 3 additions & 1 deletion src/js/components/ObjectName.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default function getObjectName(props) {
<span class="array-key">{display_name}</span>
<span {...Theme(theme, 'colon')}>:</span>
</span>
) : (<span />);
) : (
<span />
);
} else {
return (
<span {...Theme(theme, 'object-name')} key={namespace}>
Expand Down
18 changes: 10 additions & 8 deletions src/js/components/VariableEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,16 @@ class VariableEditor extends React.PureComponent {
class="variable-row"
key={variable.name}
>
{(type == 'array') ? ((displayArrayKey ?
(<span
{...Theme(theme, 'array-key')}
key={variable.name + '_' + namespace}>
{variable.name}
<div {...Theme(theme, 'colon')}>:</div>
</span>)
: null)
{type == 'array' ? (
displayArrayKey ? (
<span
{...Theme(theme, 'array-key')}
key={variable.name + '_' + namespace}
>
{variable.name}
<div {...Theme(theme, 'colon')}>:</div>
</span>
) : null
) : (
<span>
<span
Expand Down
2 changes: 1 addition & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ReactJsonView extends React.PureComponent {
style: {},
validationMessage: 'Validation Error',
defaultValue: null,
displayArrayKey: true,
displayArrayKey: true
};

// will trigger whenever setState() is called, or parent passes in new props.
Expand Down

0 comments on commit 6b50e71

Please sign in to comment.