changed syntax of top level functions

This commit is contained in:
Sai Jatin K 2020-06-30 01:57:31 +05:30
parent 6a429cc3f0
commit d99afcccc5
No known key found for this signature in database
GPG key ID: 58A469B796EA80DF

View file

@ -34,12 +34,14 @@ import AddToCollectionList from '../components/AddToCollectionList';
import Feedback from '../components/Feedback'; import Feedback from '../components/Feedback';
import { CollectionSearchbar } from '../components/Searchbar'; import { CollectionSearchbar } from '../components/Searchbar';
const getTitle = (props) => { function getTitle(props) {
const { id } = props.project; const { id } = props.project;
return id ? `p5.js Web Editor | ${props.project.name}` : 'p5.js Web Editor'; return id ? `p5.js Web Editor | ${props.project.name}` : 'p5.js Web Editor';
}; }
const isUserOwner = props => props.project.owner && props.project.owner.id === props.user.id; function isUserOwner(props) {
return props.project.owner && props.project.owner.id === props.user.id;
}
class IDEView extends React.Component { class IDEView extends React.Component {
constructor(props) { constructor(props) {