diff --git a/client/.env b/client/.env index 0038af3..30293ab 100644 --- a/client/.env +++ b/client/.env @@ -1,4 +1,4 @@ # VITE_API_URL=http://localhost:3001 -# VITE_API_URL=http://192.168.1.171:3001 -VITE_API_URL=https://crm.stream.graff.tech/api +VITE_API_URL=http://192.168.1.171:3001 +# VITE_API_URL=https://crm.stream.graff.tech/api VITE_STREAM_URL=https://stream.graff.tech diff --git a/client/package.json b/client/package.json index 5510550..097c808 100644 --- a/client/package.json +++ b/client/package.json @@ -10,6 +10,7 @@ "preview": "vite preview" }, "dependencies": { + "@react-input/mask": "^1.2.5", "@uidotdev/usehooks": "^2.4.1", "date-fns": "^2.30.0", "ky": "^1.0.1", diff --git a/client/src/components/Button.tsx b/client/src/components/Button.tsx index a175470..9b94fe7 100644 --- a/client/src/components/Button.tsx +++ b/client/src/components/Button.tsx @@ -30,7 +30,7 @@ function Button({ disabled={disabled || loading} type={type} onClick={handleClick} - className={`relative outline-none rounded-lg transition-all font-semibold flex justify-center items-center gap-1 disabled:bg-[#F2F2F2] disabled:text-[#CCCCCC] ${ + className={`outline-none rounded-lg transition-all font-semibold flex justify-center items-center gap-1 disabled:bg-[#F2F2F2] disabled:text-[#CCCCCC] ${ (color === "primary" && "bg-[#49A1F5] text-white hover:bg-[#4190DB]") || (color === "secondary" && "bg-[#F0F1F2] text-[#77828C] hover:bg-[#E6ECF2]") || diff --git a/client/src/components/Card.tsx b/client/src/components/Card.tsx index c237b67..f7d293f 100644 --- a/client/src/components/Card.tsx +++ b/client/src/components/Card.tsx @@ -12,7 +12,7 @@ interface CardProps { buildId: string; scheduledSessionId: string; scheduleSessionStartAt: string; - client: { + client?: { name: string; phone: string; email: string; @@ -65,7 +65,7 @@ function Card({
Клиент
-{client.name}
+{client?.name || "Имя не указано"}
- {client.phone} + {client?.phone || "Телефон не указан"}
- {client.email} + {client?.email || "Email не указан"}
{user?.name[0]}
+{user?.name}
+{user?.username}
+