-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(3000): remove main-app-content
- Loading branch information
1 parent
885d319
commit 9bf54ca
Showing
9 changed files
with
5 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,9 @@ | ||
import clsx from 'clsx' | ||
import { BillingAlertsV2 } from 'lib/components/BillingAlertsV2' | ||
import { ReactNode } from 'react' | ||
import { SceneConfig } from 'scenes/sceneTypes' | ||
|
||
import { ProjectNotice } from './ProjectNotice' | ||
import { SideBar } from './SideBar/SideBar' | ||
|
||
export function Navigation({ | ||
children, | ||
sceneConfig, | ||
}: { | ||
children: ReactNode | ||
sceneConfig: SceneConfig | null | ||
}): JSX.Element { | ||
export function Navigation(): JSX.Element { | ||
return ( | ||
<div className="h-screen flex flex-col"> | ||
<SideBar> | ||
<div | ||
className={clsx( | ||
'main-app-content', | ||
sceneConfig?.layout === 'plain' && 'main-app-content--plain', | ||
sceneConfig?.layout === 'app-container' && 'main-app-content--container' | ||
)} | ||
> | ||
{sceneConfig?.layout !== 'plain' && ( | ||
<> | ||
<BillingAlertsV2 /> | ||
{!sceneConfig?.hideProjectNotice && <ProjectNotice />} | ||
</> | ||
)} | ||
{children} | ||
</div> | ||
</SideBar> | ||
</div> | ||
<SideBar> | ||
<div /> | ||
</SideBar> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-27.6 KB
...snapshots/Navigation-App-Page-With-Side-Bar-Hidden-Desktop-1-chromium-linux.png
Binary file not shown.
Binary file removed
BIN
-45.9 KB
...-snapshots/Navigation-App-Page-With-Side-Bar-Shown-Desktop-1-chromium-linux.png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters