diff --git a/src/pages/hcp/api-docs/vault-secrets/[[...page]].tsx b/src/pages/hcp/api-docs/vault-secrets/[[...page]].tsx index 6956279c8a..2ef40b8ce9 100644 --- a/src/pages/hcp/api-docs/vault-secrets/[[...page]].tsx +++ b/src/pages/hcp/api-docs/vault-secrets/[[...page]].tsx @@ -25,6 +25,7 @@ import type { */ const PAGE_CONFIG: OpenApiDocsPageConfig = { productSlug: 'hcp', + serviceProductSlug: 'vault', basePath: '/hcp/api-docs/vault-secrets', githubSourceDirectory: { owner: 'hashicorp', @@ -98,6 +99,7 @@ export const getStaticProps: GetStaticProps< return await getOpenApiDocsStaticProps({ basePath: PAGE_CONFIG.basePath, productSlug: PAGE_CONFIG.productSlug, + serviceProductSlug: PAGE_CONFIG.serviceProductSlug, statusIndicatorConfig: PAGE_CONFIG.statusIndicatorConfig, navResourceItems: PAGE_CONFIG.navResourceItems, massageSchemaForClient: PAGE_CONFIG.massageSchemaForClient, diff --git a/src/views/open-api-docs-view/components/open-api-overview/index.tsx b/src/views/open-api-docs-view/components/open-api-overview/index.tsx index 2443cf0bdd..b74bc104c3 100644 --- a/src/views/open-api-docs-view/components/open-api-overview/index.tsx +++ b/src/views/open-api-docs-view/components/open-api-overview/index.tsx @@ -3,17 +3,16 @@ * SPDX-License-Identifier: MPL-2.0 */ -// Third-party -import { IconVaultColor16 } from '@hashicorp/flight-icons/svg-react/vault-color-16' // Components import Badge from 'components/badge' import IconTile from 'components/icon-tile' +import ProductIcon from 'components/product-icon' // Local import { Status } from './components/status' // Types import type { StatusIndicatorConfig } from 'views/open-api-docs-view/types' -// Types import type { ReactNode } from 'react' +import type { ProductSlug } from 'types/products' // Styles import s from './open-api-overview.module.css' @@ -31,6 +30,7 @@ export interface OpenApiOverviewProps { id: string } badgeText: string + serviceProductSlug: ProductSlug statusIndicatorConfig?: StatusIndicatorConfig contentSlot?: ReactNode className?: string @@ -39,6 +39,7 @@ export interface OpenApiOverviewProps { export function OpenApiOverview({ heading, badgeText, + serviceProductSlug, statusIndicatorConfig, contentSlot, }: OpenApiOverviewProps) { @@ -46,7 +47,7 @@ export function OpenApiOverview({