Skip to content

Commit 1adc759

Browse files
committed
feat: hide support and sidebar button
1 parent c4c72ef commit 1adc759

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

apps/developer-hub/src/components/Root/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const Root = ({ children }: Props) => (
3434
>
3535
<AppShell
3636
appName="Developer Hub"
37+
displaySupportButton={false}
3738
amplitudeApiKey={AMPLITUDE_API_KEY}
3839
googleAnalyticsId={GOOGLE_ANALYTICS_ID}
3940
enableAccessibilityReporting={ENABLE_ACCESSIBILITY_REPORTING}

apps/developer-hub/src/config/layout.config.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ export const docsOptions: DocsLayoutProps = {
2020
tree: source.pageTree,
2121
sidebar: {
2222
tabs: false,
23+
collapsible: false,
2324
},
2425
};

packages/component-library/src/AppShell/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const AppShell = ({
6262

6363
type AppBodyProps = Pick<
6464
ComponentProps<typeof Header>,
65-
"appName" | "mainCta" | "extraCta"
65+
"appName" | "mainCta" | "extraCta" | "displaySupportButton"
6666
> & {
6767
tabs?: Tab[] | undefined;
6868
children: ReactNode;

packages/component-library/src/Header/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ type Props = ComponentProps<"header"> & {
3030
| undefined;
3131
mainMenu?: ReactNode | undefined;
3232
extraCta?: ReactNode | undefined;
33+
displaySupportButton?: boolean | undefined;
3334
};
3435

3536
export const Header = ({
@@ -38,6 +39,7 @@ export const Header = ({
3839
mainCta,
3940
mainMenu,
4041
extraCta,
42+
displaySupportButton = true,
4143
...props
4244
}: Props) => (
4345
<header className={clsx(styles.header, className)} {...props}>
@@ -53,7 +55,7 @@ export const Header = ({
5355
{mainMenu}
5456
</div>
5557
<div className={styles.rightMenu}>
56-
<Button
58+
{displaySupportButton && <Button
5759
variant="ghost"
5860
size="sm"
5961
rounded
@@ -63,6 +65,7 @@ export const Header = ({
6365
>
6466
Support
6567
</Button>
68+
}
6669
{extraCta}
6770
<MobileMenu className={styles.mobileMenu} mainCta={mainCta} />
6871
<Button

0 commit comments

Comments
 (0)