diff --git a/packages/lib-user/src/components/MyGroups/components/PreviewLayout/PreviewLayout.js b/packages/lib-user/src/components/MyGroups/components/PreviewLayout/PreviewLayout.js index 8475f9ca02..13521439ee 100644 --- a/packages/lib-user/src/components/MyGroups/components/PreviewLayout/PreviewLayout.js +++ b/packages/lib-user/src/components/MyGroups/components/PreviewLayout/PreviewLayout.js @@ -1,6 +1,7 @@ import { Loader, SpacedText } from '@zooniverse/react-components' import { Anchor, Box, Paragraph } from 'grommet' import { arrayOf, bool, func, shape, string } from 'prop-types' +import Link from 'next/link' import { ContentBox } from '@components/shared' import GroupCardContainer from '../GroupCard/GroupCardContainer.js' @@ -17,7 +18,7 @@ export default function PreviewLayout({ return ( {loading && ( diff --git a/packages/lib-user/src/components/UserHome/components/Dashboard/Dashboard.js b/packages/lib-user/src/components/UserHome/components/Dashboard/Dashboard.js index edfd6798de..9193675331 100644 --- a/packages/lib-user/src/components/UserHome/components/Dashboard/Dashboard.js +++ b/packages/lib-user/src/components/UserHome/components/Dashboard/Dashboard.js @@ -14,6 +14,7 @@ import { SpacedHeading, SpacedText } from '@zooniverse/react-components' import DashboardLink from './components/DashboardLink.js' import StatsTabsContainer from './components/StatsTabs/StatsTabsContainer.js' +import Link from 'next/link' const LinkToBlogPost = styled(Anchor)` position: absolute; @@ -253,6 +254,7 @@ export default function Dashboard({ user, userLoading }) { More Stats} icon={} diff --git a/packages/lib-user/src/components/shared/HeaderLink/HeaderLink.js b/packages/lib-user/src/components/shared/HeaderLink/HeaderLink.js index 64d6d29a05..6bec4b36b9 100644 --- a/packages/lib-user/src/components/shared/HeaderLink/HeaderLink.js +++ b/packages/lib-user/src/components/shared/HeaderLink/HeaderLink.js @@ -2,6 +2,7 @@ import { Previous } from 'grommet-icons' import { string } from 'prop-types' import { HeaderButton } from '@components/shared' +import Link from 'next/link' function HeaderLink({ href, @@ -10,6 +11,7 @@ function HeaderLink({ }) { return ( } label={label} diff --git a/packages/lib-user/src/components/shared/MainContent/MainContent.js b/packages/lib-user/src/components/shared/MainContent/MainContent.js index 3d9e80dc9d..cfd0a18383 100644 --- a/packages/lib-user/src/components/shared/MainContent/MainContent.js +++ b/packages/lib-user/src/components/shared/MainContent/MainContent.js @@ -22,6 +22,7 @@ import { StyledTab } from './components' import { getDateRangeSelectOptions, getProjectSelectOptions } from './helpers' +import Link from 'next/link' const DEFAULT_HANDLER = () => true const DEFAULT_DATE_RANGE = { @@ -291,7 +292,7 @@ function MainContent({ margin={{ top: 'small' }} >