AuthLayout: hide projectId if not available

This commit is contained in:
Sidney Alcantara
2022-07-15 12:19:58 +10:00
parent 1cd3f29fe0
commit 7604768ec5

View File

@@ -142,13 +142,15 @@ export default function AuthLayout({
/>
)}
<Typography
variant="caption"
color="text.disabled"
sx={{ display: hideProject ? "none" : "block", mb: -0.5 }}
>
Project: <span style={{ userSelect: "all" }}>{projectId}</span>
</Typography>
{projectId && (
<Typography
variant="caption"
color="text.disabled"
sx={{ display: hideProject ? "none" : "block", mb: -0.5 }}
>
Project: <span style={{ userSelect: "all" }}>{projectId}</span>
</Typography>
)}
</Paper>
<Stack