Skip to content

Commit

Permalink
fix: hero props (#36)
Browse files Browse the repository at this point in the history
* fix: hero props

* chore: test

* chore: snapshots
  • Loading branch information
belohlavek authored Mar 26, 2019
1 parent 063ebe5 commit 8d6a5d7
Show file tree
Hide file tree
Showing 71 changed files with 4 additions and 22 deletions.
8 changes: 4 additions & 4 deletions src/components/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@ export type HeroProps = {
}

export class Hero extends React.PureComponent<HeroProps> {
static Header = ({ children }, ...props) => (
static Header = ({ children, ...props }) => (
<Container>
<Header className="hero-title" size="huge" {...props}>
{children}
</Header>
</Container>
)

static Description = ({ children }, ...props) => (
static Description = ({ children, ...props }) => (
<Container>
<Header className="hero-subtitle" {...props}>
{children}
</Header>
</Container>
)

static Content = ({ children }, ...props) => (
static Content = ({ children, ...props }) => (
<div className="hero-content" {...props}>
{children}
</div>
)

static Actions = ({ children }, ...props) => (
static Actions = ({ children, ...props }) => (
<Container className="hero-actions" {...props}>
{children}
</Container>
Expand Down
18 changes: 0 additions & 18 deletions test/coverage/__snapshots__/coverage.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2523,7 +2523,6 @@ exports[`Decentraland UI - Coverage Tests Hero Left alignment 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui huge header hero-title"
>
Help us build Decentraland
Expand All @@ -2533,7 +2532,6 @@ exports[`Decentraland UI - Coverage Tests Hero Left alignment 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui header hero-subtitle"
>
Join the discussion
Expand Down Expand Up @@ -2579,7 +2577,6 @@ exports[`Decentraland UI - Coverage Tests Hero Text only 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui huge header hero-title"
>
Help us build Decentraland
Expand All @@ -2589,7 +2586,6 @@ exports[`Decentraland UI - Coverage Tests Hero Text only 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui header hero-subtitle"
>
Join the discussion
Expand Down Expand Up @@ -2635,7 +2631,6 @@ exports[`Decentraland UI - Coverage Tests Hero With actions 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui huge header hero-title"
>
Help us build Decentraland
Expand All @@ -2645,14 +2640,12 @@ exports[`Decentraland UI - Coverage Tests Hero With actions 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui header hero-subtitle"
>
Join the discussion
</div>
</div>
<div
0={Object {}}
className="ui container hero-actions"
>
<button
Expand Down Expand Up @@ -2702,7 +2695,6 @@ exports[`Decentraland UI - Coverage Tests Hero With content 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui huge header hero-title"
>
Help us build Decentraland
Expand All @@ -2712,14 +2704,12 @@ exports[`Decentraland UI - Coverage Tests Hero With content 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui header hero-subtitle"
>
Join the discussion
</div>
</div>
<div
0={Object {}}
className="hero-content"
>
<div
Expand Down Expand Up @@ -4764,7 +4754,6 @@ exports[`Decentraland UI - Coverage Tests Navbar With Overlay over Hero 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui huge header hero-title"
>
Help us build Decentraland
Expand All @@ -4774,14 +4763,12 @@ exports[`Decentraland UI - Coverage Tests Navbar With Overlay over Hero 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui header hero-subtitle"
>
Join the discussion
</div>
</div>
<div
0={Object {}}
className="hero-content"
>
<div
Expand Down Expand Up @@ -4969,7 +4956,6 @@ exports[`Decentraland UI - Coverage Tests Navbar With hero 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui huge header hero-title"
>
Help us build Decentraland
Expand All @@ -4979,14 +4965,12 @@ exports[`Decentraland UI - Coverage Tests Navbar With hero 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui header hero-subtitle"
>
Join the discussion
</div>
</div>
<div
0={Object {}}
className="hero-content"
>
<div
Expand Down Expand Up @@ -5614,7 +5598,6 @@ exports[`Decentraland UI - Coverage Tests Page Hero page 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui huge header hero-title"
>
ATLAS
Expand All @@ -5624,7 +5607,6 @@ exports[`Decentraland UI - Coverage Tests Page Hero page 1`] = `
className="ui container"
>
<div
0={Object {}}
className="ui header hero-subtitle"
>
Or something like that
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8d6a5d7

Please sign in to comment.