♻️ rename getTitle to withChangeDot

This commit is contained in:
ghalestrilo 2020-08-12 10:56:46 -03:00
parent 214f5d655a
commit 7402a6b07d

View file

@ -39,7 +39,7 @@ import Dropdown from '../../../components/Dropdown';
const isUserOwner = ({ project, user }) =>
project.owner && project.owner.id === user.id;
const getTitle = (title, unsavedChanges = false) => (
const withChangeDot = (title, unsavedChanges = false) => (
<span>
{title}
<span className="editor__unsaved-changes">
@ -110,7 +110,7 @@ const MobileIDEView = (props) => {
return (
<Screen fullscreen>
<Header
title={getTitle(project.name, unsavedChanges)}
title={withChangeDot(project.name, unsavedChanges)}
subtitle={selectedFile.name}
>
<NavItem>