Merge pull request #3019 from element-hq/robin/actually-hide-header

Actually hide the header on error pages
This commit is contained in:
Robin
2025-02-24 17:47:22 +07:00
committed by GitHub

View File

@@ -30,10 +30,14 @@ export const FullScreenView: FC<FullScreenViewProps> = ({
const { hideHeader } = useUrlParams();
return (
<div className={classNames(styles.page, className)}>
<Header>
<LeftNav>{!hideHeader && <HeaderLogo />}</LeftNav>
<RightNav />
</Header>
{!hideHeader && (
<Header>
<LeftNav>
<HeaderLogo />
</LeftNav>
<RightNav />
</Header>
)}
<div className={styles.container}>
<div className={styles.content}>{children}</div>
</div>