Refactor cases pane's component and UI
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
|||||||
ModalBody,
|
ModalBody,
|
||||||
ModalFooter,
|
ModalFooter,
|
||||||
} from "@nextui-org/react";
|
} from "@nextui-org/react";
|
||||||
import { FolderType } from "./layout";
|
import { FolderType } from "@/types/folder";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
isOpen: boolean;
|
isOpen: boolean;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Image, Button, Tooltip, Card, CardBody } from "@nextui-org/react";
|
import { Image, Button, Tooltip, Card, CardBody } from "@nextui-org/react";
|
||||||
import { AttachmentType } from "./caseTypes";
|
import { AttachmentType } from "../../../../../../../types/case";
|
||||||
import { Trash, ArrowDownToLine } from "lucide-react";
|
import { Trash, ArrowDownToLine } from "lucide-react";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@@ -13,9 +13,9 @@ import {
|
|||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { Save, Plus, ArrowLeft, ArrowUpFromLine } from "lucide-react";
|
import { Save, Plus, ArrowLeft, ArrowUpFromLine } from "lucide-react";
|
||||||
import { priorities, testTypes, templates } from "@/config/selection";
|
import { priorities, testTypes, templates } from "@/config/selection";
|
||||||
import CaseStepsEditor from "./case-steps-editor";
|
import CaseStepsEditor from "./CaseStepsEditor";
|
||||||
import CaseAttachmentsEditor from "./case-attachments-editor";
|
import CaseAttachmentsEditor from "./CaseAttachmentsEditor";
|
||||||
import { CaseType, AttachmentType } from "./caseTypes";
|
import { CaseType, AttachmentType } from "@/types/case";
|
||||||
import {
|
import {
|
||||||
fetchCase,
|
fetchCase,
|
||||||
fetchCreateStep,
|
fetchCreateStep,
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Textarea, Button, Tooltip } from "@nextui-org/react";
|
import { Textarea, Button, Tooltip } from "@nextui-org/react";
|
||||||
import { StepType } from "./caseTypes";
|
import { StepType } from "../../../../../../../types/case";
|
||||||
import { Plus, Trash } from "lucide-react";
|
import { Plus, Trash } from "lucide-react";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import CaseEditor from "./case-editor";
|
import CaseEditor from "./CaseEditor";
|
||||||
|
|
||||||
export default function Page({
|
export default function Page({
|
||||||
params,
|
params,
|
||||||
|
|||||||
Reference in New Issue
Block a user