+
diff --git a/src/components/modals/CurrentSessionModal.tsx b/src/components/modals/CurrentSessionModal.tsx
new file mode 100644
index 0000000..32caa14
--- /dev/null
+++ b/src/components/modals/CurrentSessionModal.tsx
@@ -0,0 +1,60 @@
+import { IServer } from "../../types/IServer";
+import FlashIcon from "../icons/FlashIcon";
+import NewButton from "../NewButton";
+import ChevronRightIcon from "../icons/ChevronRightIcon";
+
+function CurrentSessionModal({ server }: { server: IServer }) {
+ console.log(server.client?.name);
+ return (
+
+
+ Текущий сеанс
+
+
+
+
+
+
+
{server.name}
+
+
+ Сеанс идёт 24:05
+
+
+
+
+ {server.location}
+
+
+
+
+
+
Параметры сеанса
+
+
+
+
Клиент
+
{server.client?.name}
+
+
+ {!server.client?.email && (
+
+ Добавьте email
+
+ )}
+
+
+
+
+
+
+
+
+
Детали
+
+
+
+ );
+}
+
+export default CurrentSessionModal;
diff --git a/src/components/modals/EditTable.tsx b/src/components/modals/EditTableModal.tsx
similarity index 100%
rename from src/components/modals/EditTable.tsx
rename to src/components/modals/EditTableModal.tsx
diff --git a/src/pages/DashboardPage.tsx b/src/pages/DashboardPage.tsx
index f05a68c..1ada217 100644
--- a/src/pages/DashboardPage.tsx
+++ b/src/pages/DashboardPage.tsx
@@ -6,6 +6,8 @@ import DesktopCard from "../components/DesktopCard";
import Badge from "../components/Badge";
import { ISession } from "../types/ISession";
import SessionCard from "../components/SessionCard";
+import NewButton from "../components/NewButton";
+import ChevronRightIcon from "../components/icons/ChevronRightIcon";
function DashboardPage() {
const { data: me } = useQuery({
@@ -58,12 +60,24 @@ function DashboardPage() {
Последние сеансы
-
- {sessions
- ?.filter((session) => session.status === "ended")
- .map((session) => (
-
- ))}
+
+
+ {sessions
+ ?.filter((session) => session.status === "ended")
+ .map((session) => (
+
+ ))}
+
+
+ Смотреть всё
+
+
+
+
diff --git a/src/types/IClient.ts b/src/types/IClient.ts
index d600434..b087356 100644
--- a/src/types/IClient.ts
+++ b/src/types/IClient.ts
@@ -1,7 +1,10 @@
export interface IClient {
id: string;
- fullname: string;
+ name: string;
email: string;
phone: string;
companyId: string;
+ createdAt: string;
+ ownerId: string;
+ updatedAt: string;
}
diff --git a/src/types/IServer.ts b/src/types/IServer.ts
index 03b3b0f..647d9af 100644
--- a/src/types/IServer.ts
+++ b/src/types/IServer.ts
@@ -1,4 +1,5 @@
import { IApp } from "./IApp";
+import { IClient } from "./IClient";
import { ISession } from "./ISession";
export interface IServer {
@@ -10,4 +11,5 @@ export interface IServer {
sessions?: ISession[];
apps?: IApp[];
status: "online" | "offline";
+ client?: IClient;
}