Link-ify logo

This commit is contained in:
Collin M. Barrett 2019-09-02 17:00:49 -05:00
parent 90aa02e6f6
commit dcd8fab3a7
3 changed files with 10 additions and 6 deletions

Binary file not shown.

View file

@ -12,7 +12,6 @@
"babel-plugin-import": "^1.12.1",
"customize-cra": "^0.5.0",
"react": "^16.9.0",
"react-app-rewired": "^2.1.3",
"react-dom": "^16.9.0",
"react-router-dom": "^5.0.1",
"react-scripts": "^3.1.1",
@ -39,5 +38,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"react-app-rewired": "^2.1.3"
}
}

View file

@ -1,6 +1,6 @@
import { Icon, Layout, Menu } from 'antd';
import React from 'react';
import { BrowserRouter as Router, Route, RouteComponentProps, Switch } from 'react-router-dom';
import { BrowserRouter as Router, Link, Route, RouteComponentProps, Switch } from 'react-router-dom';
import { ListsTable } from './components';
@ -28,10 +28,12 @@ export const App: React.FC = () =>
</Router>;
const Logo = () =>
<img src={`${process.env.PUBLIC_URL}/logo_filterlists.png`}
alt="FilterLists logo"
height="44px"
style={{ background: '#fff' }} />;
<Link to="/">
<img src={`${process.env.PUBLIC_URL}/logo_filterlists.png`}
alt="FilterLists logo"
height="44px"
style={{ background: '#fff' }} />
</Link>;
const NotFound = (props: RouteComponentProps) =>
<h2>