Integrating new form binder
This commit is contained in:
@@ -48,6 +48,10 @@ export class App extends Component {
|
||||
window.location.replace('/')
|
||||
}
|
||||
|
||||
handleProfile() {
|
||||
window.location.replace('/profile')
|
||||
}
|
||||
|
||||
handleChangeTitle(title) {
|
||||
this.setState({ title })
|
||||
}
|
||||
@@ -66,6 +70,7 @@ export class App extends Component {
|
||||
)
|
||||
headerButtonsRight = (
|
||||
<Fragment>
|
||||
<HeaderButton icon='profile' onClick={this.handleProfile} />
|
||||
<HeaderButton icon='logout' onClick={this.handleLogout} />
|
||||
</Fragment>
|
||||
)
|
||||
@@ -75,7 +80,7 @@ export class App extends Component {
|
||||
<Router basename='/'>
|
||||
<Column minHeight='100vh'>
|
||||
<Column.Item height={sizeInfo.headerHeight - sizeInfo.headerBorderWidth}>
|
||||
<Box color={colorInfo.headerButtonBackground} borderBottom={`${sizeInfo.headerBorderWidth}px solid ${colorInfo.headerBorder}`}>
|
||||
<Box background={colorInfo.headerButtonBackground} borderBottom={{ width: sizeInfo.headerBorderWidth, color: colorInfo.headerBorder }}>
|
||||
<Row minWidth='100vw'>
|
||||
<Row.Item>{headerButtonsLeft}</Row.Item>
|
||||
<Row.Item grow />
|
||||
@@ -96,7 +101,7 @@ export class App extends Component {
|
||||
<ProtectedRoute path='/' component={Home} />
|
||||
</Switch>
|
||||
<Column.Item>
|
||||
<Box color={colorInfo.headerButtonBackground} borderTop={`${sizeInfo.headerBorderWidth}px solid ${colorInfo.headerBorder}`}>
|
||||
<Box background={colorInfo.headerButtonBackground} borderTop={{ width: sizeInfo.headerBorderWidth, color: colorInfo.headerBorder }}>
|
||||
<Text color='dimmed' margin={10}>{'v' + versionInfo.version} {versionInfo.copyright}</Text>
|
||||
</Box>
|
||||
</Column.Item>
|
||||
|
||||
Reference in New Issue
Block a user