2024-06-04 08:17:19 +00:00
|
|
|
import { FC } from "react";
|
2024-05-23 08:11:30 +00:00
|
|
|
import { observer } from "mobx-react";
|
2024-05-27 10:21:27 +00:00
|
|
|
import { Button } from "@plane/ui";
|
2024-05-23 08:11:30 +00:00
|
|
|
// components
|
|
|
|
import { EModalPosition, EModalWidth, ModalCore } from "@/components/core";
|
2024-06-04 08:17:19 +00:00
|
|
|
import { EstimateUpdateStageOne } from "@/components/estimates";
|
2024-05-23 08:11:30 +00:00
|
|
|
|
2024-05-27 04:17:31 +00:00
|
|
|
type TUpdateEstimateModal = {
|
|
|
|
workspaceSlug: string;
|
|
|
|
projectId: string;
|
|
|
|
estimateId: string | undefined;
|
2024-05-23 08:11:30 +00:00
|
|
|
isOpen: boolean;
|
|
|
|
handleClose: () => void;
|
|
|
|
};
|
|
|
|
|
2024-05-27 04:17:31 +00:00
|
|
|
export const UpdateEstimateModal: FC<TUpdateEstimateModal> = observer((props) => {
|
2024-05-23 08:11:30 +00:00
|
|
|
// props
|
2024-06-04 08:17:19 +00:00
|
|
|
const { isOpen, handleClose } = props;
|
2024-05-28 10:23:56 +00:00
|
|
|
|
2024-05-23 08:11:30 +00:00
|
|
|
return (
|
|
|
|
<ModalCore isOpen={isOpen} handleClose={handleClose} position={EModalPosition.TOP} width={EModalWidth.XXL}>
|
|
|
|
<div className="relative space-y-6 py-5">
|
|
|
|
{/* heading */}
|
2024-05-27 04:17:31 +00:00
|
|
|
<div className="relative flex justify-between items-center gap-2 px-5">
|
|
|
|
<div className="relative flex items-center gap-1">
|
|
|
|
<div className="text-xl font-medium text-custom-text-200">Edit estimate system</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-05-23 08:11:30 +00:00
|
|
|
|
2024-06-04 08:17:19 +00:00
|
|
|
<div className="px-5">
|
|
|
|
<EstimateUpdateStageOne />
|
2024-05-27 04:17:31 +00:00
|
|
|
</div>
|
2024-05-28 10:23:56 +00:00
|
|
|
|
2024-06-04 08:17:19 +00:00
|
|
|
<div className="relative flex justify-end items-center gap-3 px-5 pt-5 border-t border-custom-border-200">
|
|
|
|
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
|
|
|
|
Cancel
|
|
|
|
</Button>
|
|
|
|
</div>
|
2024-05-23 08:11:30 +00:00
|
|
|
</div>
|
|
|
|
</ModalCore>
|
|
|
|
);
|
|
|
|
});
|