From b601c89eeb12fbd49428ccc4296bf7b1d70ff4ad Mon Sep 17 00:00:00 2001 From: Alex Kern Date: Sun, 20 Sep 2020 18:10:15 -0700 Subject: [PATCH] Migrate some stuff --- src/components/App.tsx | 99 ------------------------------------ src/components/Bootstrap.tsx | 13 ----- src/components/Footer.tsx | 36 +++++++++++++ src/pages/_app.tsx | 29 +++++++++++ 4 files changed, 65 insertions(+), 112 deletions(-) delete mode 100644 src/components/App.tsx delete mode 100644 src/components/Bootstrap.tsx create mode 100644 src/components/Footer.tsx create mode 100644 src/pages/_app.tsx diff --git a/src/components/App.tsx b/src/components/App.tsx deleted file mode 100644 index a772378..0000000 --- a/src/components/App.tsx +++ /dev/null @@ -1,99 +0,0 @@ -import FrozenHead from 'react-frozenhead' -import React from 'react' -import { RouteHandler } from 'react-router' -import ga from 'react-google-analytics' -import SupportStore from '../stores/SupportStore' -import ErrorPage from './ErrorPage' -import Bootstrap from './Bootstrap' - -if (process.env.GA_ACCESS_TOKEN) { - ga('create', process.env.GA_ACCESS_TOKEN, 'auto') - ga('send', 'pageview') -} - -export default class App extends React.Component { - constructor() { - super() - this.state = SupportStore.getState() - - this._onChange = () => { - this.setState(SupportStore.getState()) - } - } - - componentDidMount() { - SupportStore.listen(this._onChange) - } - - componentWillUnmount() { - SupportStore.unlisten(this._onChange) - } - - render() { - return ( - - - - - - - - - - FilePizza - Your files, delivered. - - - - {process.env.GA_ACCESS_TOKEN ? :
} - - - ) - } -} diff --git a/src/components/Bootstrap.tsx b/src/components/Bootstrap.tsx deleted file mode 100644 index 7e48f35..0000000 --- a/src/components/Bootstrap.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import React from 'react' - -export default class Bootstrap extends React.Component { - render() { - return ( -