Skip to content

Commit

Permalink
Fix two small docs issues (#183)
Browse files Browse the repository at this point in the history
* Fix two small docs issues

* fix the source and run the build-docs command
  • Loading branch information
frehner authored Feb 15, 2023
1 parent 8e0752f commit 9f025d3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/react/docs/generated/generated_docs_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -4738,7 +4738,7 @@
"definitions": [
{
"title": "Props",
"description": "interface description",
"description": "",
"type": "ShopPayButtonProps",
"typeDefinitions": {
"ShopPayButtonProps": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/docs/generated/generated_static_pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"tabs": [
{
"title": "Hook",
"code": "import {useMoney} from '@shopify/hydrogen-react';\n\nexport function MyComponent() {\n const {currencyCode, currencySymbol, amount} = useMoney(variant.pricev2);\n\n return (\n <div>\n <strong>{currencyCode}</strong>\n <span>{currencySymbol}</span>\n <span>{amount}</span>\n </div>\n );\n}\n",
"code": "import {useMoney} from '@shopify/hydrogen-react';\n\nexport function MyComponent({variant}) {\n const {currencyCode, currencySymbol, amount} = useMoney(variant.pricev2);\n\n return (\n <div>\n <strong>{currencyCode}</strong>\n <span>{currencySymbol}</span>\n <span>{amount}</span>\n </div>\n );\n}\n",
"language": "javascript"
}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/react/docs/staticPages/hook.example.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {useMoney} from '@shopify/hydrogen-react';

export function MyComponent() {
export function MyComponent({variant}) {
const {currencyCode, currencySymbol, amount} = useMoney(variant.pricev2);

return (
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/ShopPayButton.doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const data: ReferenceEntityTemplateSchema = {
{
title: 'Props',
type: 'ShopPayButtonProps',
description: 'interface description',
description: '',
},
],
};
Expand Down

0 comments on commit 9f025d3

Please sign in to comment.