Skip to content

Commit

Permalink
♻️ Link in KanbanCard is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Jun 4, 2024
1 parent d9950c4 commit 18e8db0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frontend/src/components/KanbanCard/KanbanCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Button, ButtonLink, Outline, P, Tooltip } from "@maykin-ui/admin-ui";
import { FC } from "react";
import { Link } from "react-router-dom";

import "./KanbanCard.css";

Expand All @@ -9,15 +8,13 @@ interface IKanbanCardProps {
days?: string;
assigneeNames: string[];
downloadUrl?: string;
href: string;
}

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

return (
<Link to={href} className="kanban-card">
<div className="kanban-card">
<div className="kanban-card__days-download">
<P>{days}</P>
{downloadUrl && (
Expand All @@ -52,6 +49,6 @@ export const KanbanCard: FC<IKanbanCardProps> = ({
</P>
<div className="kanban-card__divider" />
<div className="kanban-card__assignees">{renderAssignees()}</div>
</Link>
</div>
);
};

0 comments on commit 18e8db0

Please sign in to comment.