Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/update components lib #602

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@types/react-svg-pan-zoom": "^3.3.5",
"@types/uuid": "^9.0.0",
"@vtex/brand-ui": "^0.46.1",
"@vtexdocs/components": "https://github.com/vtexdocs/components.git#v1.4.0",
"@vtexdocs/components": "https://github.com/vtexdocs/components.git#v2.0.1",
"algoliasearch": "^4.14.2",
"chalk": "^5.2.0",
"copy-text-to-clipboard": "^3.0.1",
Expand Down
1 change: 1 addition & 0 deletions src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default function Layout({
isPreview={isPreview}
fallback={sidebarfallback}
sectionSelected={sectionSelected ?? ''}
hamburguerMenuSections={[documentationData, updatesData]}
>
<iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-WGQQ964"
Expand Down
6 changes: 6 additions & 0 deletions src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,35 @@ export const messages = getMessages()

export const documentationData: DocDataElement[] = [
{
id: 'Guides',
Icon: APIGuidesIcon,
title: 'Guides',
description: messages['documentation_api_guides.description'],
link: '/docs/guides',
},
{
id: 'API Reference',
Icon: APIReferenceIcon,
title: 'API Reference',
description: messages['documentation_api_reference.description'],
link: '/docs/api-reference',
},
{
id: 'App Development',
Icon: AppDevelopmentIcon,
title: 'App Development',
description: messages['documentation_app_development.description'],
link: '/docs/app-development',
},
{
id: 'Storefront Development',
Icon: StorefrontDevelopmentIcon,
title: 'Storefront Development',
description: messages['documentation_storefront.description'],
link: '/docs/storefront-development',
},
{
id: 'VTEX IO Apps',
Icon: VTEXIOAppsIcon,
title: 'VTEX IO Apps',
description: messages['documentation_vtexio_apps.description'],
Expand Down Expand Up @@ -92,6 +97,7 @@ export const adminData: AdminDataElement[] = [

export const updatesData: UpdatesDataElement[] = [
{
id: 'Release Notes',
Icon: ReleaseNotesIcon,
title: 'Release Notes',
description: messages['updates_release_notes.description'],
Expand Down
2 changes: 2 additions & 0 deletions src/utils/typings/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ export type DataElement = {
}
export interface DocDataElement extends DataElement {
title: DocumentationTitle
id: string
}
export interface UpdatesDataElement extends DataElement {
title: UpdatesTitle
id: string
}
export interface AdminDataElement extends DataElement {
title: AdminTitle
Expand Down
Loading