diff options
Diffstat (limited to 'src/components/UserStrip/UserStrip.tsx')
-rw-r--r-- | src/components/UserStrip/UserStrip.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/UserStrip/UserStrip.tsx b/src/components/UserStrip/UserStrip.tsx index a2d2700..73d9363 100644 --- a/src/components/UserStrip/UserStrip.tsx +++ b/src/components/UserStrip/UserStrip.tsx @@ -5,7 +5,6 @@ import VerifiedIcon from '@material-ui/icons/CheckCircleOutline'; import { Avatar, CardHeader } from '@material-ui/core/'; import { User } from 'which-types'; -import urls from '../../pages/urls'; interface PropTypes { user: User; @@ -35,7 +34,7 @@ const UserStrip: React.FC<PropTypes> = ({ user, info }) => { const { username, avatarUrl, verified } = user; const handleNavigate = () => { - history.push(urls.profile(user.username)); + history.push(`/profile/${username}`); }; const avatar = ( |