diff --git a/src/FilterLists.Web.V2/package-lock.json b/src/FilterLists.Web.V2/package-lock.json index 6105aad3b..1f6d43ece 100644 Binary files a/src/FilterLists.Web.V2/package-lock.json and b/src/FilterLists.Web.V2/package-lock.json differ diff --git a/src/FilterLists.Web.V2/package.json b/src/FilterLists.Web.V2/package.json index d7d16ac3d..b5f9fb383 100644 --- a/src/FilterLists.Web.V2/package.json +++ b/src/FilterLists.Web.V2/package.json @@ -7,12 +7,14 @@ "@types/node": "^12.7.2", "@types/react": "^16.9.2", "@types/react-dom": "^16.9.0", + "@types/react-router-dom": "^4.3.5", "antd": "^3.22.0", "babel-plugin-import": "^1.12.0", "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", "typescript": "3.5.3" }, diff --git a/src/FilterLists.Web.V2/src/App.tsx b/src/FilterLists.Web.V2/src/App.tsx index dbd1fff01..335b8162c 100644 --- a/src/FilterLists.Web.V2/src/App.tsx +++ b/src/FilterLists.Web.V2/src/App.tsx @@ -1,25 +1,31 @@ import { Layout, Menu } from 'antd'; import React from 'react'; +import { BrowserRouter, Route, RouteComponentProps, Switch } from 'react-router-dom'; import { AllListsTable } from './components'; const { Header, Content, Footer } = Layout; export const App: React.FC = () => - -
- - -
- -
- -
-
- -
; + + +
+ + +
+ +
+ + + + +
+
+ +
+
; const Logo = (): JSX.Element => title="Donate to FilterLists with Beerpay" target="_blank" rel="noopener noreferrer"> Donate - ; \ No newline at end of file + ; + +const NotFound = (props: RouteComponentProps) => +

+ 404 Not Found: {props.location.pathname} +

; \ No newline at end of file diff --git a/src/FilterLists.Web.V2/src/components/allListsTable/AllListsTable.tsx b/src/FilterLists.Web.V2/src/components/allListsTable/AllListsTable.tsx index 17017b9d6..5e8ef4b0e 100644 --- a/src/FilterLists.Web.V2/src/components/allListsTable/AllListsTable.tsx +++ b/src/FilterLists.Web.V2/src/components/allListsTable/AllListsTable.tsx @@ -118,7 +118,6 @@ export class AllListsTable extends React.Component<{}, State> { : null} /> title="Details" dataIndex={nameof("viewUrl")} - width={123} className={styles.nogrow} fixed={this.state.isNarrowWindow ? undefined : "right"} render={(_text: string, record: List) => } />