Refactor BannerTopBar to common > components

This commit is contained in:
Barry Low committed 2018-11-09 11:43:38 -08:00
1 parent 661e6637be
commit 7bea3c511b
4 files changed
+9 -22

No files matched your search

-18
View File
@@ -1,18 +0,0 @@
import React from 'react'
import Typography from '@material-ui/core/Typography'
const BannerTopBar = ({
size,
backgroundUrl,
title,
text
}) => (
<div className={`bannerTopBar ${size}`} style={backgroundUrl ? { backgroundImage: `url(${backgroundUrl})` } : {}}>
<div className='caption'>
<Typography className='title' variant='h1' align='center'>{title}</Typography>
<Typography className='text' variant='h2' align='center'>{text}</Typography>
</div>
</div>
)
export default BannerTopBar
+7 -2
View File
@@ -1,7 +1,12 @@
import React from 'react'
import { MessageCard } from '@advancedalgos/web-components'
import BannerTopBar from '../common'
const Callback = () => <MessageCard message='Authenticating...' />
const Callback = () => <BannerTopBar
size='big'
title=''
text='Authenticating...'
backgroundUrl='https://aacorporatesitedevelop.azurewebsites.net/img/photos/superalgos-platform.jpg'
/>
export default Callback
+1 -1
View File
@@ -2,7 +2,7 @@ import React, { Component } from 'react'
import { withStyles } from '@material-ui/core/styles'
import { connect } from 'react-redux'
import BannerTopBar from '../BannerTopBar'
import BannerTopBar from '../common'
const styles = theme => ({
'@global': {
+1 -1
View File
@@ -1,5 +1,5 @@
import React, { Component } from 'react'
import BannerTopBar from '../BannerTopBar'
import BannerTopBar from '../common'
import { Typography } from '@material-ui/core'
class Home extends Component {