aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components/Author.tsx
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-03-01 20:57:43 +0100
committerGitHub <noreply@github.com>2022-03-01 20:57:43 +0100
commit2dbe0fd5fc3f3f74848df9499cddf32663e771ee (patch)
treefa162059dd8732ab3d6b22fb6df1fa10a353985f /webui/src/components/Author.tsx
parent08e00b4eb8f8cf8e614cae8dee46862a398f465d (diff)
parent8229e80d1eeee73bd4eab46c90d9f97f802ab063 (diff)
downloadgit-bug-2dbe0fd5fc3f3f74848df9499cddf32663e771ee.tar.gz
Merge pull request #750 from MichaelMure/sandhose/webui-upgrade
Upgrade webui dependencies
Diffstat (limited to 'webui/src/components/Author.tsx')
-rw-r--r--webui/src/components/Author.tsx15
1 files changed, 9 insertions, 6 deletions
diff --git a/webui/src/components/Author.tsx b/webui/src/components/Author.tsx
index 593b5d36..92e14d40 100644
--- a/webui/src/components/Author.tsx
+++ b/webui/src/components/Author.tsx
@@ -1,10 +1,8 @@
-import React from 'react';
+import MAvatar from '@mui/material/Avatar';
+import Link from '@mui/material/Link';
+import Tooltip from '@mui/material/Tooltip/Tooltip';
import { Link as RouterLink } from 'react-router-dom';
-import MAvatar from '@material-ui/core/Avatar';
-import Link from '@material-ui/core/Link';
-import Tooltip from '@material-ui/core/Tooltip/Tooltip';
-
import { AuthoredFragment } from '../graphql/fragments.generated';
type Props = AuthoredFragment & {
@@ -15,7 +13,12 @@ type Props = AuthoredFragment & {
const Author = ({ author, ...props }: Props) => {
return (
<Tooltip title={`Goto the ${author.displayName}'s profile.`}>
- <Link {...props} component={RouterLink} to={`/user/${author.id}`}>
+ <Link
+ {...props}
+ component={RouterLink}
+ to={`/user/${author.id}`}
+ underline="hover"
+ >
{author.displayName}
</Link>
</Tooltip>