Skip to content
This repository has been archived by the owner on Nov 1, 2018. It is now read-only.

Commit

Permalink
🔥 Removed useless sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
Gejsi committed Oct 9, 2017
1 parent 4d6bca2 commit f3b8351
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/pages/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,6 @@ const LogoContainer = styled.div`
`

export class Home extends Component {
state = { value: 0, focus: false }

@bind
onChange(value) {
this.setState({ value })
}

@bind
onFocus() {
this.setState({ focus: true })
}

@bind
onBlur() {
console.log('called')
this.setState({ focus: false })
}

@bind
@debounce(300)
handleClick() {
Expand All @@ -46,16 +28,6 @@ export class Home extends Component {
<LogoContainer>
{Logo}
<RaisedButton onClick={this.handleClick} primary>Get started</RaisedButton>
<Slider
value={this.state.value}
focus={this.state.focus}
keyFocus={this.state.focus}
max={100}
onChange={this.onChange}
onFocus={this.onFocus}
onBlur={this.onBlur}
discrete
steps={10} />
</LogoContainer>
)
}
Expand Down

0 comments on commit f3b8351

Please sign in to comment.