Skip to content

Commit

Permalink
add missing titles to Components docs CodeGroups
Browse files Browse the repository at this point in the history
  • Loading branch information
mosesintech committed Feb 6, 2024
1 parent ce0b30c commit 4f0759a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions apps/docs/src/app/packages/nextwp/core/components/page.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { CodeGroup } from '@/components/Code'

export const metadata = {
title: 'Components',
description: '',
Expand All @@ -11,8 +13,8 @@ A collection of components for use in NextWP projects. {{ className:"lead"}}

A component used in a Next.js dynamic route to render Wordpress pages and posts.

<CodeGroup>
```javascript {{title:"src/app/[[...paths]]/page.tsx"}}
<CodeGroup title={"src/app/[[...paths]]/page.tsx"}>
```javascript
import { WordpressTemplate, type RouteParams, type SearchParams } from "@nextwp/core";
import templates from "@/templates";

Expand Down Expand Up @@ -231,9 +233,9 @@ The icon uploaded in WordPress will be used as the favicon and app icon.

### Usage

<CodeGroup>
<CodeGroup title={"src/app/icon.tsx"}>

```tsx {{ title: 'src/app/icon.tsx' }}
```tsx
export { Icon as default } from '@nextwp/core'

export const runtime = 'edge'
Expand Down Expand Up @@ -269,9 +271,9 @@ The icon uploaded in WordPress will be used as the favicon and app icon.

### Usage

<CodeGroup>
<CodeGroup title={"src/app/apple-icon.tsx"}>

```tsx {{ title: 'src/app/apple-icon.tsx' }}
```tsx
export { AppleIcon as default } from '@nextwp/core'

export const runtime = 'edge'
Expand Down

0 comments on commit 4f0759a

Please sign in to comment.