♻️ 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 }) =>
|
const isUserOwner = ({ project, user }) =>
|
||||||
project.owner && project.owner.id === user.id;
|
project.owner && project.owner.id === user.id;
|
||||||
|
|
||||||
const getTitle = (title, unsavedChanges = false) => (
|
const withChangeDot = (title, unsavedChanges = false) => (
|
||||||
<span>
|
<span>
|
||||||
{title}
|
{title}
|
||||||
<span className="editor__unsaved-changes">
|
<span className="editor__unsaved-changes">
|
||||||
|
@ -110,7 +110,7 @@ const MobileIDEView = (props) => {
|
||||||
return (
|
return (
|
||||||
<Screen fullscreen>
|
<Screen fullscreen>
|
||||||
<Header
|
<Header
|
||||||
title={getTitle(project.name, unsavedChanges)}
|
title={withChangeDot(project.name, unsavedChanges)}
|
||||||
subtitle={selectedFile.name}
|
subtitle={selectedFile.name}
|
||||||
>
|
>
|
||||||
<NavItem>
|
<NavItem>
|
||||||
|
|
Loading…
Reference in a new issue