Ver código fonte

Refactored out Column

master
James McKenzie 3 anos atrás
pai
commit
41c8de7b50
4 arquivos alterados com 10 adições e 10 exclusões
  1. +0
    -1
      ReactLearning/kanban-board/src/App.tsx
  2. +2
    -8
      ReactLearning/kanban-board/src/components/Header.tsx
  3. +0
    -1
      ReactLearning/kanban-board/src/components/KBColumn.tsx
  4. +8
    -0
      ReactLearning/kanban-board/src/types/Column.ts

+ 0
- 1
ReactLearning/kanban-board/src/App.tsx Ver arquivo

@@ -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;


+ 2
- 8
ReactLearning/kanban-board/src/components/Header.tsx Ver arquivo

@@ -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 = {


+ 0
- 1
ReactLearning/kanban-board/src/components/KBColumn.tsx Ver arquivo

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


+ 8
- 0
ReactLearning/kanban-board/src/types/Column.ts Ver arquivo

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

Carregando…
Cancelar
Salvar