mirror of
https://github.com/docmost/docmost.git
synced 2026-09-01 03:15:32 +08:00
refactor(bases): rename KanbanColumn helper type to KanbanColumnData; clsx + font vars
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { IBaseProperty, IBaseRow } from "@/features/base/types/base.types";
|
||||
import classes from "@/features/base/styles/kanban.module.css";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import clsx from "clsx";
|
||||
|
||||
type KanbanCardProps = {
|
||||
row: IBaseRow;
|
||||
@@ -30,11 +31,7 @@ export function KanbanCard({ row, primaryProperty, onClick }: KanbanCardProps) {
|
||||
}
|
||||
}}
|
||||
>
|
||||
<div
|
||||
className={
|
||||
classes.cardTitle + (isEmpty ? " " + classes.cardTitleEmpty : "")
|
||||
}
|
||||
>
|
||||
<div className={clsx(classes.cardTitle, isEmpty && classes.cardTitleEmpty)}>
|
||||
{titleText}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { KanbanColumn as KanbanColumnData } from "@/features/base/hooks/use-kanban-groups";
|
||||
import { KanbanColumnData } from "@/features/base/hooks/use-kanban-groups";
|
||||
import { IBaseProperty } from "@/features/base/types/base.types";
|
||||
import { KanbanCard } from "./kanban-card";
|
||||
import { KanbanColumnHeader } from "./kanban-column-header";
|
||||
|
||||
Reference in New Issue
Block a user