This commit is contained in:
2023-10-29 18:07:00 +05:00
parent d72990ce2c
commit 9c97dbc620
9 changed files with 110 additions and 76 deletions
+3 -1
View File
@@ -1 +1,3 @@
VITE_SERVER_URL=http://192.168.1.170:3001
# VITE_SERVER_URL=http://localhost:3001
VITE_SERVER_URL=http://192.168.1.170:3001
# VITE_SERVER_URL=https://crm.stream.graff.tech/api
+16 -6
View File
@@ -4,6 +4,8 @@ import { useEffect, useState } from "react";
import SelectUser from "./SelectUser";
import MoreIcon from "./icons/MoreIcon";
import api from "../utils/api";
import Button from "./Button";
import { Link } from "react-router-dom";
interface CardProps {
companyId: string;
@@ -99,12 +101,20 @@ function Card({
{manager ? manager.name : "Не назначен"}
</p>
</div>
<button
onClick={() => setIsShow(!isShow)}
className="p-1 text-[#77828C] hover:bg-neutral-100 rounded-lg"
>
<MoreIcon />
</button>
<div className="flex gap-2">
{manager && (
<Link to={`http://192.168.1.170:5000/scheduled/${scheduledSessionId}`} target="_blank">
<Button>Начать</Button>
</Link>
)}
<button
onClick={() => setIsShow(!isShow)}
className="p-1 text-[#77828C] hover:bg-neutral-100 rounded-lg"
>
<MoreIcon />
</button>
</div>
</div>
</div>