Skip to content

Commit 91671d9

Browse files
authored
Merge pull request #3019 from element-hq/robin/actually-hide-header
Actually hide the header on error pages
2 parents 832a5aa + e4d7baf commit 91671d9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/FullScreenView.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,14 @@ export const FullScreenView: FC<FullScreenViewProps> = ({
3030
const { hideHeader } = useUrlParams();
3131
return (
3232
<div className={classNames(styles.page, className)}>
33-
<Header>
34-
<LeftNav>{!hideHeader && <HeaderLogo />}</LeftNav>
35-
<RightNav />
36-
</Header>
33+
{!hideHeader && (
34+
<Header>
35+
<LeftNav>
36+
<HeaderLogo />
37+
</LeftNav>
38+
<RightNav />
39+
</Header>
40+
)}
3741
<div className={styles.container}>
3842
<div className={styles.content}>{children}</div>
3943
</div>

0 commit comments

Comments
 (0)