Skip to content

Commit

Permalink
fix:resolve build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
maceteligolden committed Dec 6, 2023
1 parent a1d8435 commit 051826e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions apps/web/lib/features/team-members-kanban-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ const reorderItemMap = ({ itemMap, source, destination }: {
};
};

const getHeaderBackground = (column: any) => {

const { columns } = useKanban();

const getHeaderBackground = (columns: any, column: any) => {
const selectState = columns.filter((item: any)=> {
return item.name === column.toUpperCase()
});
Expand All @@ -66,6 +63,8 @@ const getHeaderBackground = (column: any) => {

export const KanbanView = ({ itemsArray }: { itemsArray: any}) => {

const { columns:kanbanColumns } = useKanban();

const [items, setItems] = useState<any>(itemsArray);

const [columns, setColumn] = useState<any>(Object.keys(itemsArray));
Expand Down Expand Up @@ -176,7 +175,7 @@ export const KanbanView = ({ itemsArray }: { itemsArray: any}) => {
index={index}
title={column}
items={items[column]}
backgroundColor={getHeaderBackground(column)}
backgroundColor={getHeaderBackground(kanbanColumns, column)}
/>
<div className="flex flex-row items-center text-base not-italic font-semibold rounded-2xl gap-4 bg-white dark:bg-dark--theme-light p-4">
<AddIcon height={20} width={20}/>
Expand Down

0 comments on commit 051826e

Please sign in to comment.