mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-12 03:36: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 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;
|
||||||
|
|
|
||||||
|
|
@ -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} />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue