Skip to content

Commit 7fca4fc

Browse files
committed
chore: isEnterprise tpe moved to page header
1 parent ad5e1c3 commit 7fca4fc

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

src/Shared/Components/Header/PageHeader.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const PageHeader = ({
4848
onClose,
4949
markAsBeta,
5050
tippyProps,
51+
isEnterprise,
5152
}: PageHeaderType) => {
5253
const { loginCount, setLoginCount, showGettingStartedCard, setShowGettingStartedCard, licenseData } =
5354
useMainContext()
@@ -154,6 +155,7 @@ const PageHeader = ({
154155
interactive
155156
arrow
156157
onClose={handleCloseSwitchThemeLocationTippyChange}
158+
isEnterprise={isEnterprise}
157159
>
158160
<button
159161
type="button"

src/Shared/Components/Header/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export interface PageHeaderType {
4343
tippyMessage?: string
4444
onClickTippyButton?: () => void
4545
}
46+
isEnterprise?: boolean
4647
}
4748

4849
export interface ServerInfo {

src/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const ModalSidebarPanel = ({
2424
icon,
2525
children,
2626
documentationLink,
27+
isEnterprise = false,
2728
}: ModalSidebarPanelProps) => (
2829
<div className={`flexbox-col w-250 dc__gap-24 dc__modal-gradient ${rootClassName}`}>
2930
<div className="flexbox-col dc__gap-12">
@@ -42,6 +43,7 @@ const ModalSidebarPanel = ({
4243
text="View documentation"
4344
dataTestId="learn-more-about-modal-sidebar-panel-link"
4445
showExternalIcon
46+
isEnterprise={isEnterprise}
4547
/>
4648
</div>
4749
</div>

src/Shared/Components/ModalSidebarPanel/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ import { ReactNode } from 'react'
1818

1919
import { DocLinkProps } from '@Common/DocLink/types'
2020

21-
export interface ModalSidebarPanelProps {
21+
import { PageHeaderType } from '../Header/types'
22+
23+
export interface ModalSidebarPanelProps extends Pick<PageHeaderType, 'isEnterprise'> {
2224
rootClassName?: string
2325
heading: string | null
2426
icon?: JSX.Element

0 commit comments

Comments
 (0)