From 426b91707d4e62c059d950367095b044f2ae764d Mon Sep 17 00:00:00 2001 From: Hugo Bernier Date: Tue, 21 Apr 2020 19:45:41 -0400 Subject: [PATCH] Update KanbanBoard.tsx Fixed linting issues --- .../kanbanBoard/components/KanbanBoard.tsx | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/samples/react-kanban-board/src/webparts/kanbanBoard/components/KanbanBoard.tsx b/samples/react-kanban-board/src/webparts/kanbanBoard/components/KanbanBoard.tsx index 0571bddc1..0172a05a7 100644 --- a/samples/react-kanban-board/src/webparts/kanbanBoard/components/KanbanBoard.tsx +++ b/samples/react-kanban-board/src/webparts/kanbanBoard/components/KanbanBoard.tsx @@ -16,12 +16,12 @@ import JqxKanban, { IKanbanProps, jqx, IKanbanSource } from 'jqwidgets-scripts/j const rowStyle1: IStackStyles = { root:{ flexBasis:"30%" - } + } }; const rowStyle2: IStackStyles = { root:{ flexBasis:"70%" - } + } }; export interface ICustomKanbanProps extends IKanbanProps{ @@ -95,11 +95,11 @@ export default class KanbanBoard extends React.Component { const el = this.state.showBoard ? - !this.state.noItems ? { + private _getData = (listTitle) => { if(listTitle && listTitle.length > 0) { sp.web.lists.getByTitle(listTitle).fields.getByInternalNameOrTitle("Status").get() .then(status => { - + const cols = status.Choices.map((val,index) => { return { text: val, dataField: val }; }); - + sp.web.lists.getByTitle(listTitle).items.getAll().then(res => { - + const source = { dataFields: this.sourceFields, dataType: 'array', localData: [ ...res ] }; - + sp.web.siteUsers.get().then(users => { const resourcesAdapterFunc = (): any => { const resourcesSource = { @@ -215,7 +215,7 @@ export default class KanbanBoard extends React.Component { + private _updateTask = (event: any): void => { let args = event.args; // let itemId = args.itemId; // let oldParentId = args.oldParentId; @@ -249,7 +249,7 @@ export default class KanbanBoard extends React.Component { + private _showTask = (event:any): void => { if(event.args.attribute === "template") { this.setState({ @@ -257,11 +257,11 @@ export default class KanbanBoard extends React.Component { + private _closeDialog = (): void => { this.setState({ hideDialog: true }); } }