In progress changes for Kanban Board and updated schema migrations. Performed some cleanup.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import React from "react";
|
||||
import Board from "react-trello";
|
||||
import WhiteBoardCard from "../white-board-card/white-board-card.component";
|
||||
|
||||
export default function WhiteBoardKanBan({ data, eventBus }) {
|
||||
const setEventBus = handle => {
|
||||
eventBus = handle;
|
||||
};
|
||||
|
||||
return (
|
||||
<Board
|
||||
tagStyle={{ fontSize: "80%" }}
|
||||
data={data}
|
||||
draggable
|
||||
eventBusHandle={setEventBus}
|
||||
components={{ Card: WhiteBoardCard }}
|
||||
onCardClick={(cardId, metadata) =>
|
||||
alert(`Card with id:${cardId} clicked. Has metadata.id: ${metadata.id}`)
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user