Skip to content

Commit 701136c

Browse files
committed
Chore: removed unnecessary dependency
1 parent 89678df commit 701136c

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

bun.lockb

-24 Bytes
Binary file not shown.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"react-gridlines": "1.1.7",
5959
"react-loader-spinner": "5.3.4",
6060
"react-redux": "9.1.0",
61-
"react-router-dom": "6.14.0",
6261
"tailwind-merge": "1.13.2",
6362
"uuid": "9.0.0"
6463
},

src/components/core/button.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { RotatingLines } from "react-loader-spinner";
2-
import { Link } from "react-router-dom";
32
import { cva } from "class-variance-authority";
43
import { twMerge } from "tailwind-merge";
54

@@ -54,9 +53,9 @@ interface ButtonProps extends React.HTMLProps<HTMLButtonElement> {
5453
const Button = ({ to, wrapperClassName, target, ariaLabel, ...props }: ButtonProps) => {
5554
if (to) {
5655
return (
57-
<Link to={to} target={target ?? "_self"} className={wrapperClassName} aria-label={ariaLabel}>
56+
<a href={to} target={target ?? "_self"} className={wrapperClassName} aria-label={ariaLabel}>
5857
<Button {...props} />
59-
</Link>
58+
</a>
6059
);
6160
}
6261
return <Core {...props} />;

0 commit comments

Comments
 (0)