@@ -3,7 +3,6 @@ import KBColumn from "./components/KBColumn"; | |||||
import "./App.css"; | import "./App.css"; | ||||
import Header from "./components/Header"; | import Header from "./components/Header"; | ||||
import Task from "./types/Task"; | import Task from "./types/Task"; | ||||
import { isThisTypeNode } from "typescript"; | |||||
type TaskPassback = { | type TaskPassback = { | ||||
title: string; | title: string; | ||||
description: string; | description: string; | ||||
@@ -1,20 +1,14 @@ | |||||
import React from "react"; | import React from "react"; | ||||
import Modal from "./Modal"; | import Modal from "./Modal"; | ||||
import { Component } from "react"; | |||||
import Task from "../types/Task"; | import Task from "../types/Task"; | ||||
import Column from "../types/Column" | |||||
type TaskPassback = { | type TaskPassback = { | ||||
title: string; | title: string; | ||||
description: string; | description: string; | ||||
priority: priority; | priority: priority; | ||||
column: number; | column: number; | ||||
}; | }; | ||||
type Column = { | |||||
id: number; | |||||
name: string; | |||||
color: string; | |||||
tasks: Task[]; | |||||
}; | |||||
type priority = "normal" | "important" | "urgent"; | type priority = "normal" | "important" | "urgent"; | ||||
type HeaderProps = { | type HeaderProps = { | ||||
@@ -1,4 +1,3 @@ | |||||
import * as react from "react"; | |||||
import Task from "../types/Task"; | import Task from "../types/Task"; | ||||
type KBColumnProps = { | type KBColumnProps = { | ||||
color?: string; | color?: string; | ||||
@@ -0,0 +1,8 @@ | |||||
import Task from "./Task" | |||||
type Column = { | |||||
id: number; | |||||
name: string; | |||||
color: string; | |||||
tasks: Task[]; | |||||
}; | |||||
export default Column |