fix links to work on a bare host (#132)

This commit is contained in:
Aria Moradi
2022-02-21 01:10:33 +03:30
committed by GitHub
parent 08d44e38fc
commit f47f71bc4c
4 changed files with 20 additions and 8 deletions

View File

@@ -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<Link, {}>) {
return (
<ListItem
// @ts-ignore
// sx={{ color: 'white', textDecoration: 'none', '-webkit-text-decoration': 'none' }}
// @ts-ignore
button
component={Link}
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
/>
);
// eslint-disable-next-line react/jsx-props-no-spreading
return <ListItem button component="a" {...props} />;
// return <ListItem button component="a" {...props} />;
}