[BUG] new ticket modal receives projects

This commit is contained in:
Ruidy Nemausat 2020-04-17 16:14:35 +02:00
parent e073c59b2c
commit ddbd949112
2 changed files with 7 additions and 4 deletions

View file

@ -1,12 +1,11 @@
import React, { FC, useState, FormEvent } from "react";
import { useRouteMatch } from "react-router-dom";
import { TextField, MenuItem } from "@material-ui/core";
import { Modal } from "./Modal";
import { NewTicketForm } from "../NewTicketForm";
import { Ticket } from "../../types/Ticket";
import { Project } from "../../types/Project";
import { post } from "../../utils/http";
import { Constants } from "../../utils/Constants";
import { TextField, MenuItem } from "@material-ui/core";
interface IProps {
show: boolean;

View file

@ -63,7 +63,7 @@ export const ProjectTabPanel: FC<IProps> = ({
tickets,
tabNames,
files,
// allProjects
allProjects,
}) => {
const classes = useStyles();
const theme = useTheme();
@ -103,7 +103,11 @@ export const ProjectTabPanel: FC<IProps> = ({
onChangeIndex={handleChangeIndex}
>
<TabPanel value={value} index={0} dir={theme.direction}>
<TicketList tickets={tickets} allProjects={[]} addButton={true} />
<TicketList
tickets={tickets}
allProjects={allProjects}
addButton={true}
/>
</TabPanel>
{/* <TabPanel value={value} index={1} dir={theme.direction}>
<FileList files={files} />