[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 React, { FC, useState, FormEvent } from "react";
import { useRouteMatch } from "react-router-dom"; import { useRouteMatch } from "react-router-dom";
import { TextField, MenuItem } from "@material-ui/core";
import { Modal } from "./Modal"; import { Modal } from "./Modal";
import { NewTicketForm } from "../NewTicketForm";
import { Ticket } from "../../types/Ticket"; import { Ticket } from "../../types/Ticket";
import { Project } from "../../types/Project"; import { Project } from "../../types/Project";
import { post } from "../../utils/http"; import { post } from "../../utils/http";
import { Constants } from "../../utils/Constants"; import { Constants } from "../../utils/Constants";
import { TextField, MenuItem } from "@material-ui/core";
interface IProps { interface IProps {
show: boolean; show: boolean;

View file

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