Skip to content

Commit

Permalink
Merge pull request #7774 from joeycozza/next
Browse files Browse the repository at this point in the history
React: Fix missing props in the Welcome.tsx demo
  • Loading branch information
shilman authored Aug 29, 2019
2 parents fbe6294 + 0efc7a2 commit 42a9be0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ exports[`Storyshots Welcome to Storybook 1`] = `
onClick={[Function]}
>
<button
onClick={[Function]}
style={
Object {
"backgroundColor": "transparent",
Expand Down Expand Up @@ -272,6 +273,7 @@ exports[`Storyshots Welcome to Storybook 1`] = `
"textDecoration": "none",
}
}
target="_blank"
>
Writing Stories
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ exports[`Storyshots Welcome to Storybook 1`] = `
<p>
See these sample
<button
onClick={[Function]}
style={
Object {
"backgroundColor": "transparent",
Expand Down Expand Up @@ -233,6 +234,7 @@ exports[`Storyshots Welcome to Storybook 1`] = `
"textDecoration": "none",
}
}
target="_blank"
>
Writing Stories
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ exports[`Storyshots Welcome to Storybook 1`] = `
<p>
See these sample
<button
onClick={[Function]}
style={
Object {
"backgroundColor": "transparent",
Expand Down Expand Up @@ -137,6 +138,7 @@ exports[`Storyshots Welcome to Storybook 1`] = `
"textDecoration": "none",
}
}
target="_blank"
>
Writing Stories
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ exports[`Storyshots Welcome to Storybook 1`] = `
<p>
See these sample
<button
onClick={[Function]}
style={
Object {
"backgroundColor": "transparent",
Expand Down Expand Up @@ -137,6 +138,7 @@ exports[`Storyshots Welcome to Storybook 1`] = `
"textDecoration": "none",
}
}
target="_blank"
>
Writing Stories
</a>
Expand Down
4 changes: 4 additions & 0 deletions app/react/src/demo/Welcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const Link = ({
children,
href,
target,
rel,
...props
}: {
children: string;
Expand All @@ -70,6 +71,8 @@ const Link = ({
<a
href={href}
{...props}
target={target}
rel={rel}
style={{
color: '#1474f3',
textDecoration: 'none',
Expand Down Expand Up @@ -101,6 +104,7 @@ const NavButton = ({
<button
{...props}
type="button"
onClick={onClick}
style={{
color: '#1474f3',
textDecoration: 'none',
Expand Down

1 comment on commit 42a9be0

@vercel
Copy link

@vercel vercel bot commented on 42a9be0 Aug 29, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.