Skip to content

Commit 26b60c4

Browse files
♻️ Link in KanbanCard is no longer needed
1 parent 7bbc6d4 commit 26b60c4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

frontend/src/components/KanbanCard/KanbanCard.tsx

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Button, ButtonLink, Outline, P, Tooltip } from "@maykin-ui/admin-ui";
22
import { FC } from "react";
3-
import { Link } from "react-router-dom";
43

54
import "./KanbanCard.css";
65

@@ -9,15 +8,13 @@ interface IKanbanCardProps {
98
days?: string;
109
assigneeNames: string[];
1110
downloadUrl?: string;
12-
href: string;
1311
}
1412

1513
export const KanbanCard: FC<IKanbanCardProps> = ({
1614
title,
1715
days,
1816
assigneeNames,
1917
downloadUrl, // TODO: Implement download button, not in API yet so unsure how to pass as props, will withold UI implementation until clarification
20-
href,
2118
}) => {
2219
const renderAssignees = () => {
2320
if (assigneeNames.length > 1) {
@@ -37,7 +34,7 @@ export const KanbanCard: FC<IKanbanCardProps> = ({
3734
};
3835

3936
return (
40-
<Link to={href} className="kanban-card">
37+
<div className="kanban-card">
4138
<div className="kanban-card__days-download">
4239
<P>{days}</P>
4340
{downloadUrl && (
@@ -52,6 +49,6 @@ export const KanbanCard: FC<IKanbanCardProps> = ({
5249
</P>
5350
<div className="kanban-card__divider" />
5451
<div className="kanban-card__assignees">{renderAssignees()}</div>
55-
</Link>
52+
</div>
5653
);
5754
};

0 commit comments

Comments
 (0)