mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-06 08:46:39 +00:00
[BUG] new ticket modal receives projects
This commit is contained in:
parent
e073c59b2c
commit
ddbd949112
2 changed files with 7 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue