Installing a clean linter for the frontend
This commit is contained in:
1 parent
6dd6fac7e6
commit
b14828655f
33 files changed
+607
-401
No files matched your search
@@ -1,15 +1,15 @@
|
||||
import React from 'react'
|
||||
import { Query } from 'react-apollo'
|
||||
import React from 'react';
|
||||
import { Query } from 'react-apollo';
|
||||
|
||||
import Typography from '@material-ui/core/Typography'
|
||||
import { withStyles } from '@material-ui/core/styles'
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import { withStyles } from '@material-ui/core/styles';
|
||||
|
||||
import styles from './styles'
|
||||
import styles from './styles';
|
||||
|
||||
import { showEventCalls } from '../../../GraphQL/Calls/index'
|
||||
import { showEventCalls } from '../../../GraphQL/Calls/index';
|
||||
|
||||
class Edit extends React.Component {
|
||||
render () {
|
||||
render() {
|
||||
return (
|
||||
<React.Fragment>
|
||||
<Typography
|
||||
@@ -25,18 +25,18 @@ class Edit extends React.Component {
|
||||
variables={{ designator: this.props.match.params.slug }}
|
||||
>
|
||||
{({ loading, error, data }) => {
|
||||
if (loading) return 'Loading...'
|
||||
if (error) return `Error! ${error.message}`
|
||||
if (loading) return 'Loading...';
|
||||
if (error) return `Error! ${error.message}`;
|
||||
return (
|
||||
<p>
|
||||
{data.events_Event.description}
|
||||
</p>
|
||||
)
|
||||
);
|
||||
}}
|
||||
</Query>
|
||||
</React.Fragment>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default withStyles(styles)(Edit)
|
||||
export default withStyles(styles)(Edit);
|
||||
@@ -1,4 +1,4 @@
|
||||
const styles = theme => ({
|
||||
})
|
||||
const styles = () => ({
|
||||
});
|
||||
|
||||
export default styles
|
||||
export default styles;
|
||||
@@ -1,15 +1,15 @@
|
||||
import React from 'react'
|
||||
import { Query } from 'react-apollo'
|
||||
import React from 'react';
|
||||
import { Query } from 'react-apollo';
|
||||
|
||||
import Typography from '@material-ui/core/Typography'
|
||||
import { withStyles } from '@material-ui/core/styles'
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import { withStyles } from '@material-ui/core/styles';
|
||||
|
||||
import styles from './styles'
|
||||
import styles from './styles';
|
||||
|
||||
import { showEventCalls } from '../../../GraphQL/Calls/index'
|
||||
import { showEventCalls } from '../../../GraphQL/Calls/index';
|
||||
|
||||
class Show extends React.Component {
|
||||
render () {
|
||||
render() {
|
||||
return (
|
||||
<React.Fragment>
|
||||
<Typography
|
||||
@@ -25,18 +25,18 @@ class Show extends React.Component {
|
||||
variables={{ designator: this.props.match.params.slug }}
|
||||
>
|
||||
{({ loading, error, data }) => {
|
||||
if (loading) return 'Loading...'
|
||||
if (error) return `Error! ${error.message}`
|
||||
if (loading) return 'Loading...';
|
||||
if (error) return `Error! ${error.message}`;
|
||||
return (
|
||||
<p>
|
||||
{data.events_Event.description}
|
||||
</p>
|
||||
)
|
||||
);
|
||||
}}
|
||||
</Query>
|
||||
</React.Fragment>
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default withStyles(styles)(Show)
|
||||
export default withStyles(styles)(Show);
|
||||
@@ -1,4 +1,4 @@
|
||||
const styles = theme => ({
|
||||
})
|
||||
const styles = () => ({
|
||||
});
|
||||
|
||||
export default styles
|
||||
export default styles;
|
||||
Reference in new issue
Block a user