ducky/web

Paddy 2015-07-07 Parent:99a43a6d1d30

18:9b97c908a706 Go to Latest

ducky/web/src/components/hero.jsx

Fix bug in oauth-refresh, update for hosted path. Our nginx-fronted path has changed, so update the helper to hit the right URL. Also, fix a bug that would cause every failed request to be retried, which was suboptimal.

History
1 import React from 'react'
2 import heroStyles from '../styles/hero.scss'
4 export default React.createClass({
5 displayName: 'HeroUnit',
7 render () {
8 return (
9 <div className='hero'>
10 <div className='hero-inner'>
11 <img src={require('./ducky.svg')} className='hero-logo'/>
12 <div className='hero-copy'>
13 <h1>{this.props.title}</h1>
14 <p>{this.props.children}</p>
15 </div>
16 </div>
17 </div>
18 )
19 }
20 })