Commit 0fd665fc authored by Patrik Meijer's avatar Patrik Meijer
Browse files

eslint index/demo.jsxs and consistent naming

parent ebbc572a
/* globals window */
import React, {Component} from 'react';
import AttributeEditor from './index';
......
export {default} from './AttributeEditor';
export {default, AttributeTypes} from './AttributeItem';
\ No newline at end of file
export {default, AttributeTypes} from './AttributeItem';
/* globals alert */
import React, {Component} from 'react';
import Button from '@material-ui/core/Button';
......@@ -17,17 +18,17 @@ export default class DemoConfirmDialog extends Component {
};
render() {
const {openDialog} = this.state;
return (
<div>
<Button
onClick={this.openDialog}
color="primary"
>
Show Dialog
{'Show Dialog'}
</Button>
{this.state.openDialog ? (
{openDialog ? (
<ConfirmDialog
title="A simple Yes/No or OK/Cancel Dialog"
message="Note that whenever this dialog is present it will be displayed. Therefore you
......
export {default} from './ConfirmDialog';
\ No newline at end of file
export {default} from './ConfirmDialog';
/* globals window */
import React, {Component} from 'react';
import ContainmentCanvas from './index';
......@@ -10,7 +11,16 @@ export default class DemoContainmentCanvas extends Component {
render() {
return (
<div style={{width: '90%'}}>
<ContainmentCanvas gmeClient={this.gmeClient} scrollPos={{x: 0, y: 0}} activeNode="" isOver={false} scale={1}/>
<ContainmentCanvas
gmeClient={this.gmeClient}
scrollPos={{
x: 0,
y: 0,
}}
activeNode=""
isOver={false}
scale={1}
/>
</div>
);
}
......
......@@ -5,15 +5,16 @@ export default class DemoInfoCard extends Component {
render() {
const content = (
<span>
add any thing you desire
{'Add any thing you desire'}
<br/>
<br/>
{' '}
and what you want
{' '}
{' and want '}
</span>
);
const card = InfoCard('Exmaple Info Card', content, {target: 'https://www.google.com/', title: 'Go search'});
const card = InfoCard('Example Info Card', content, {
target: 'https://www.google.com/',
title: 'Go search',
});
return (
<div>
{card}
......
......@@ -3,10 +3,6 @@ import Button from '@material-ui/core/Button';
import ModalSpinner from './index';
export default class DemoContainmentCanvas extends Component {
constructor(props) {
super(props);
}
state = {
showSpinner: false,
};
......@@ -29,7 +25,7 @@ export default class DemoContainmentCanvas extends Component {
}, 5000);
}}
>
Try modal spinner for 5 seconds!
{'Try modal spinner for 5 seconds!'}
</Button>
</div>
);
......
/* globals window */
import React, {Component} from 'react';
import AttributeEditor from './index';
export default class DemoAttributeEditor extends Component {
constructor(props) {
super(props);
this.gmeClient = new window.GME.classes.Client(window.GME.gmeConfig);
}
render() {
return (
<div style={{width: '30%'}}>
<AttributeEditor
gmeClient={this.gmeClient}
selection={['/1']}
fullWidthWidgets
/>
</div>
);
}
}
/* globals alert */
import React, {Component} from 'react';
import ProjectSeedCards from './index';
......
export {default} from './ProjectSeedCards';
\ No newline at end of file
export {default} from './ProjectSeedCards';
/* globals window */
import React, {Component} from 'react';
import TextField from '@material-ui/core/TextField';
......
export {default} from './Territory';
\ No newline at end of file
export {default} from './Territory';
/* globals window */
import React, {Component} from 'react';
import UserProfileNavigator from './index';
......
export {default} from './UserProfileNavigator';
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment