Skip to content

Commit

Permalink
Chore: removed unnecessary dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Feb 23, 2024
1 parent 89678df commit 701136c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"react-gridlines": "1.1.7",
"react-loader-spinner": "5.3.4",
"react-redux": "9.1.0",
"react-router-dom": "6.14.0",
"tailwind-merge": "1.13.2",
"uuid": "9.0.0"
},
Expand Down
5 changes: 2 additions & 3 deletions src/components/core/button.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { RotatingLines } from "react-loader-spinner";
import { Link } from "react-router-dom";
import { cva } from "class-variance-authority";
import { twMerge } from "tailwind-merge";

Expand Down Expand Up @@ -54,9 +53,9 @@ interface ButtonProps extends React.HTMLProps<HTMLButtonElement> {
const Button = ({ to, wrapperClassName, target, ariaLabel, ...props }: ButtonProps) => {
if (to) {
return (
<Link to={to} target={target ?? "_self"} className={wrapperClassName} aria-label={ariaLabel}>
<a href={to} target={target ?? "_self"} className={wrapperClassName} aria-label={ariaLabel}>
<Button {...props} />
</Link>
</a>
);
}
return <Core {...props} />;
Expand Down

0 comments on commit 701136c

Please sign in to comment.