Refactored out Column

This commit is contained in:
James McKenzie 2021-04-27 15:31:33 +12:00
parent 41d7cf2c6f
commit 41c8de7b50
4 changed files with 10 additions and 10 deletions

View File

@ -3,7 +3,6 @@ import KBColumn from "./components/KBColumn";
import "./App.css";
import Header from "./components/Header";
import Task from "./types/Task";
import { isThisTypeNode } from "typescript";
type TaskPassback = {
title: string;
description: string;

View File

@ -1,20 +1,14 @@
import React from "react";
import Modal from "./Modal";
import { Component } from "react";
import Task from "../types/Task";
import Column from "../types/Column"
type TaskPassback = {
title: string;
description: string;
priority: priority;
column: number;
};
type Column = {
id: number;
name: string;
color: string;
tasks: Task[];
};
type priority = "normal" | "important" | "urgent";
type HeaderProps = {

View File

@ -1,4 +1,3 @@
import * as react from "react";
import Task from "../types/Task";
type KBColumnProps = {
color?: string;

View File

@ -0,0 +1,8 @@
import Task from "./Task"
type Column = {
id: number;
name: string;
color: string;
tasks: Task[];
};
export default Column