At New Project popup show the Active selected all the time when popup open.
This commit is contained in:
parent
e47262123d
commit
8553b6bee7
@ -201,7 +201,7 @@ const ManageServiceProject = ({ serviceProjectId, onClose }) => {
|
|||||||
|
|
||||||
<div className="col-12 col-md-6 mb-2">
|
<div className="col-12 col-md-6 mb-2">
|
||||||
<Label htmlFor="name" required>
|
<Label htmlFor="name" required>
|
||||||
Contact Name
|
Contact Person
|
||||||
</Label>
|
</Label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
import { PROJECT_STATUS } from "../../utils/constants";
|
||||||
|
|
||||||
//#region Service Project
|
//#region Service Project
|
||||||
export const projectSchema = z.object({
|
export const projectSchema = z.object({
|
||||||
@ -26,7 +27,7 @@ export const defaultProjectValues = {
|
|||||||
services: [],
|
services: [],
|
||||||
address: "",
|
address: "",
|
||||||
assignedDate: "",
|
assignedDate: "",
|
||||||
statusId: "",
|
statusId: PROJECT_STATUS.find((s) => s.label === "Active")?.id,
|
||||||
contactName: "",
|
contactName: "",
|
||||||
contactPhone: "",
|
contactPhone: "",
|
||||||
contactEmail: "",
|
contactEmail: "",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user