Replaced react Link with custom component

The custom component merges the behaviour of antd Typography.Link and the react-router.dom Link after the custom component prop was removed in v6 according to this guide: https://reactrouter.com/en/main/upgrading/v5#remove-link-component-prop
This commit is contained in:
Danielv123 committed 2024-02-09 09:11:53 +03:00
1 parent 89919f7a89
commit 8879f8dd80
5 files changed
+60 -11

No files matched your search

@@ -1,6 +1,6 @@
import React from "react";
import { Link } from "react-router-dom";
import { Layout, Breadcrumb } from "antd";
import Link from "./Link";
const { Content } = Layout;