From 4444026359b80e5e6d4fe3b84daa2dad3a2fddfc Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Mon, 21 Feb 2022 01:09:47 +0330 Subject: [PATCH] fix links to work on a bare host --- src/components/util/ListItemLink.tsx | 16 ++++++++++++++-- src/screens/Settings.tsx | 6 +++--- src/screens/settings/About.tsx | 4 ++-- src/screens/settings/Backup.tsx | 2 +- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/components/util/ListItemLink.tsx b/src/components/util/ListItemLink.tsx index cc1716e94d..6b43f785a1 100644 --- a/src/components/util/ListItemLink.tsx +++ b/src/components/util/ListItemLink.tsx @@ -7,8 +7,20 @@ import React from 'react'; import ListItem, { ListItemProps } from '@mui/material/ListItem'; +import { Link } from 'react-router-dom'; -export default function ListItemLink(props: ListItemProps<'a', { button?: true }>) { +export default function ListItemLink(props: ListItemProps) { + return ( + + ); // eslint-disable-next-line react/jsx-props-no-spreading - return ; + // return ; } diff --git a/src/screens/Settings.tsx b/src/screens/Settings.tsx index 0ede72b850..2de7cfb64c 100644 --- a/src/screens/Settings.tsx +++ b/src/screens/Settings.tsx @@ -60,13 +60,13 @@ export default function Settings() { return ( <> - + - + @@ -134,7 +134,7 @@ export default function Settings() { - + diff --git a/src/screens/settings/About.tsx b/src/screens/settings/About.tsx index 52c817137d..d202a87343 100644 --- a/src/screens/settings/About.tsx +++ b/src/screens/settings/About.tsx @@ -44,10 +44,10 @@ export default function About() { - + - + diff --git a/src/screens/settings/Backup.tsx b/src/screens/settings/Backup.tsx index 3c53646c15..65330abd3a 100644 --- a/src/screens/settings/Backup.tsx +++ b/src/screens/settings/Backup.tsx @@ -68,7 +68,7 @@ export default function Backup() { return ( <> - +