ducky/web

Paddy 2015-06-30 Parent:99a43a6d1d30

12:791aec3eb17b Go to Latest

ducky/web/src/components/hero.jsx

Update our profile model to use our refresh helper. Update our profile model to send the correct authorization header when making requests, and if the request fails because the OAuth token has expired, try to use the refresh token to obtain a new access token, then retry the request.

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