Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | import Auth from '@aws-amplify/auth'; import BackTop from 'antd/lib/back-top'; import * as React from 'react'; import * as ReactGA from 'react-ga'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { AWS_CLIENTAPP, AWS_IDENTITYPOOL, AWS_REGION, } from '../../../shared/config'; import Helmet from '../components/Helmet'; import Router from '../router/components/Router'; import { AppMountedAction, appMountedAction } from './actions'; interface IProps { appMounted: AppMountedAction; } Auth.configure({ region: AWS_REGION, userPoolId: AWS_IDENTITYPOOL, userPoolWebClientId: AWS_CLIENTAPP, mandatorySignIn: true, }); class App extends React.Component<IProps> { public componentDidMount() { this.props.appMounted(); ReactGA.set({ page: location.pathname }); ReactGA.pageview(location.pathname); } public render() { return ( <React.Fragment> <Helmet /> <BackTop /> <Router /> </React.Fragment> ); } } export default withRouter(connect( () => ({}), { appMounted: appMountedAction, }, )(App) as any); |