Skip to content

Commit 30ddeb4

Browse files
committed
add warning about project name
1 parent 4424a5b commit 30ddeb4

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

app/src/components/right/ProjectManager.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,16 @@ const ProjectManager = () => {
157157
return (
158158
// <div className={classes.logoutButton}>
159159
<div className={classes.projectManagerWrapper}>
160-
{state.name ? (
161-
<p>You are currently working on {state.name}</p>
162-
) : (
163-
<p>
164-
Your project does not have a name, please give it name for it to be
165-
saved!!!
160+
{state.name && state.isLoggedIn ? (
161+
<p style={{ color: 'white' }}>
162+
Your current project is <strong>{state.name}</strong>
166163
</p>
167-
)}
164+
) : null}
165+
{!state.name && state.isLoggedIn ? (
166+
<p style={{ color: 'white' }}>
167+
Project will not be saved until it is named!!!
168+
</p>
169+
) : null}
168170

169171
<div className={classes.projectTypeWrapper}>
170172
<FormControl>

0 commit comments

Comments
 (0)