Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

(fix) warning validateDOMNesting(...): <a> cannot appear as a descendant of <a>.

kruzhambusb5faeb92ee0e
diff --git a/src/pages/Dashboard/Dashboard.tsx b/src/pages/Dashboard/Dashboard.tsx
index 724e1e933..03495e5ea 100644
--- a/src/pages/Dashboard/Dashboard.tsx
+++ b/src/pages/Dashboard/Dashboard.tsx
@@ -135,6 +135,7 @@ const ProjectCard = ({
}: IProjectCard): JSX.Element => {
const [showInviteModal, setShowInviteModal] = useState(false)
const role = useMemo(() => getRole && getRole(id), [getRole, id])
+ const history = useHistory()
const onAccept = async () => {
// @ts-ignore
@@ -166,7 +167,10 @@ const ProjectCard = ({
}
return (
- <Link to={_replace(type === 'analytics' ? routes.project : routes.captcha, ':id', id)}>
+ <div onClick={() => {
+ history.push(_replace(type === 'analytics' ? routes.project : routes.captcha, ':id', id))
+ }}
+ >
<li
onClick={onElementClick}
className='overflow-hidden rounded-xl border border-gray-200 cursor-pointer bg-gray-50 hover:bg-gray-100 dark:bg-slate-800 dark:hover:bg-slate-700 dark:border-slate-800/25'
@@ -250,7 +254,7 @@ const ProjectCard = ({
/>
)}
</li>
- </Link>
+ </div>
)
}