/*
Copyright (C) 2017 Cloudbase Solutions SRL
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
// @flow
import React from 'react'
import { Switch, Route } from 'react-router-dom'
import styled, { injectGlobal } from 'styled-components'
import Fonts from './atoms/Fonts'
import Notifications from './organisms/Notifications'
import LoginPage from './pages/LoginPage'
import ReplicasPage from './pages/ReplicasPage'
import NotFoundPage from './pages/NotFoundPage'
import ReplicaDetailsPage from './pages/ReplicaDetailsPage'
import MigrationsPage from './pages/MigrationsPage'
import MigrationDetailsPage from './pages/MigrationDetailsPage'
import EndpointsPage from './pages/EndpointsPage'
import EndpointDetailsPage from './pages/EndpointDetailsPage'
import WizardPage from './pages/WizardPage'
import UserStore from '../stores/UserStore'
import Palette from './styleUtils/Palette'
import StyleProps from './styleUtils/StyleProps'
injectGlobal`
${Fonts}
body {
margin: 0;
color: ${Palette.black};
font-family: Rubik;
font-size: 14px;
font-weight: ${StyleProps.fontWeights.regular};
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
`
const Wrapper = styled.div``
class App extends React.Component<{}> {
componentWillMount() {
UserStore.tokenLogin()
}
render() {
return (
)
}
}
export default App