Skip to content

Commit

Permalink
fix(pie-docs): DSW-1624 changed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
leksaBoiko committed Jul 11, 2024
1 parent 4bcc38f commit 1a4626e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions apps/pie-docs/src/components/icon-button/code/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ For HTML:
```js
// import as module into a js file e.g. main.js
import '@justeattakeaway/pie-webc/components/icon-button.js';
import '@justeattakeaway/pie-icons-webc/dist/IconClose.js';
```

```html
Expand All @@ -130,7 +131,7 @@ For React Applications:

```jsx
import { PieIconButton } from '@justeattakeaway/pie-webc/react/icon-button.js';
import { IconClose } from '@justeattakeaway/pie-icons-webc/dist/react/IconClose.js';
import { IconClose } from '@justeattakeaway/pie-icons-webc';

<PieIconButton onClick={handleClick}>
<IconClose></IconClose>
Expand All @@ -140,7 +141,7 @@ import { IconClose } from '@justeattakeaway/pie-icons-webc/dist/react/IconClose.
```jsx
// React templates (using Next 13)
import { PieIconButton } from '@justeattakeaway/pie-icon-button/dist/react';
import { IconClose } from '@justeattakeaway/pie-icons-webc/dist/react/IconClose.js';
import { IconClose } from '@justeattakeaway/pie-icons-webc';

<PieIconButton onClick={handleClick}>
<IconClose></IconClose>
Expand Down
10 changes: 7 additions & 3 deletions apps/pie-docs/src/components/template/code/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ eleventyComputed:
## Overview

<p>
<a href="https://www.npmjs.com/@justeattakeaway/{component}">
<img alt="GitHub Workflow Status" src="https://img.shields.io/npm/v/@justeattakeaway/pie-button.svg">
<a href="https://www.npmjs.com/@justeattakeaway/pie-template" style="text-decoration: none">
<img alt="GitHub Workflow Status" src="https://img.shields.io/npm/v/@justeattakeaway/pie-template.svg?label=pie-template">
</a>

<a href="https://www.npmjs.com/package/@justeattakeaway/pie-webc">
<img alt="GitHub Workflow Status" src="https://img.shields.io/npm/v/@justeattakeaway/pie-webc.svg?label=pie-webc">
</a>
</p>

Expand Down Expand Up @@ -89,7 +93,7 @@ For HTML:

```

For Native JS Applications, Vue, Angular, Svelte etc.:
For Native JS Applications, Vue, Angular, Svelte etc.:

```js

Expand Down

0 comments on commit 1a4626e

Please sign in to comment.