♻️ rename getTitle to withChangeDot
This commit is contained in:
parent
214f5d655a
commit
7402a6b07d
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue