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
1 changed files with 5 additions and 3 deletions

View File

@ -34,12 +34,14 @@ import AddToCollectionList from '../components/AddToCollectionList';
import Feedback from '../components/Feedback';
import { CollectionSearchbar } from '../components/Searchbar';
const getTitle = (props) => {
function getTitle(props) {
const { id } = props.project;
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 {
constructor(props) {