Skip to content

Commit

Permalink
fix story example
Browse files Browse the repository at this point in the history
  • Loading branch information
xasopheno committed Nov 11, 2020
1 parent 17b8ea8 commit ffbcfe3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion template/packages/frontend/pages/recipes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function RecipesList() {
}
return (
<div>
<Title text={"Recipes"} />
<Title>Recipes</Title>
{loading ? "Loading..." : null}
{data
? data.recipes.map(recipe => <Recipe {...recipe} key={recipe.id} />)
Expand Down
2 changes: 1 addition & 1 deletion template/packages/frontend/stories/Title.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { storiesOf } from "@storybook/react"
import Title from "../components/Title"

storiesOf("Title", module).add("with text", () => {
return <Title text={"My Title"} />
return <Title>Recipes</Title>
})
13 changes: 12 additions & 1 deletion template/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5392,7 +5392,7 @@ babel-jest@^26.6.0:
graceful-fs "^4.2.4"
slash "^3.0.0"

babel-loader@^8.0.6, babel-loader@^8.2.0:
babel-loader@^8.0.6:
version "8.2.0"
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.2.0.tgz#37b37e8e35511627d0e73e00a0bb5f023230fea0"
integrity sha512-xm8HSeshX4r143Vhi7b0LBjqAtOWPNGoIe7yvLUQjJcGU90+h5Odby13VejHo6zKAN+GuaOK/DwLa7wzMV5wSg==
Expand All @@ -5404,6 +5404,17 @@ babel-loader@^8.0.6, babel-loader@^8.2.0:
pify "^4.0.1"
schema-utils "^2.6.5"

babel-loader@^8.2.0:
version "8.2.1"
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.2.1.tgz#e53313254677e86f27536f5071d807e01d24ec00"
integrity sha512-dMF8sb2KQ8kJl21GUjkW1HWmcsL39GOV5vnzjqrCzEPNY0S0UfMLnumidiwIajDSBmKhYf5iRW+HXaM4cvCKBw==
dependencies:
find-cache-dir "^2.1.0"
loader-utils "^1.4.0"
make-dir "^2.1.0"
pify "^4.0.1"
schema-utils "^2.6.5"

babel-plugin-add-react-displayname@^0.0.5:
version "0.0.5"
resolved "https://registry.yarnpkg.com/babel-plugin-add-react-displayname/-/babel-plugin-add-react-displayname-0.0.5.tgz#339d4cddb7b65fd62d1df9db9fe04de134122bd5"
Expand Down

0 comments on commit ffbcfe3

Please sign in to comment.