+
{currentStartedSessions?.map((session, index, { length }) => (
-
- clsx(
- "2xl:p-[1.493vw] 2xl:py-[1.111vw] px-[21.5px] py-4 transition-colors flex 2xl:gap-[0.556vw] gap-2 items-center text-[#7D7D7D] hover:text-[#7B60F3]",
- isActive && "text-[#7B60F3]"
- )
- }
- >
-
-
-
- Главная
-
-
- clsx(
- "2xl:p-[1.493vw] 2xl:py-[1.111vw] px-[21.5px] py-4 transition-colors flex 2xl:gap-[0.556vw] gap-2 items-center text-[#7D7D7D] hover:text-[#7B60F3]",
- isActive && "text-[#7B60F3]"
- )
- }
- >
-
-
-
- Сеансы
-
-
- clsx(
- "2xl:p-[1.493vw] 2xl:py-[1.111vw] px-[21.5px] py-4 transition-colors flex 2xl:gap-[0.556vw] gap-2 items-center text-[#7D7D7D] hover:text-[#7B60F3]",
- isActive && "text-[#7B60F3]"
- )
- }
- >
-
-
-
- Главная
-
-
- clsx(
- "2xl:p-[1.493vw] 2xl:py-[1.111vw] px-[21.5px] py-4 transition-colors flex 2xl:gap-[0.556vw] gap-2 items-center text-[#7D7D7D] hover:text-[#7B60F3]",
- isActive && "text-[#7B60F3]"
- )
- }
- >
-
-
-
- Главная
-
-
- clsx(
- "2xl:p-[1.493vw] 2xl:py-[1.111vw] px-[21.5px] py-4 transition-colors flex 2xl:gap-[0.556vw] gap-2 items-center text-[#7D7D7D] hover:text-[#7B60F3]",
- isActive && "text-[#7B60F3]"
- )
- }
- >
-
-
-
- Главная
-
- {/* */}
+
+
+
+
+
+
+ Главная
+
+
+
+
+
+
+
+
+ Сеансы
+
+
+
+
+
+
+
+
+ Менеджеры
+
+
+
+
+
+
+
+
+
+ Клиенты
+
+
+
+
+
+
+
+
+
+ Проекты
+
+
+
);
}
diff --git a/src/components/NewButton.tsx b/src/components/NewButton.tsx
index c1d38f1..e7da654 100644
--- a/src/components/NewButton.tsx
+++ b/src/components/NewButton.tsx
@@ -27,7 +27,7 @@ function NewButton({
onClick?.(e);
}}
className={clsx(
- "transition-all 2xl:rounded-[0.556vw] rounded-lg flex 2xl:gap-[0.556vw] gap-2 items-center justify-center font-medium disabled:bg-[#F6F6F6] disabled:text-[#D6D6D6]",
+ "transition-all flex 2xl:gap-[0.556vw] gap-2 items-center justify-center font-medium disabled:bg-[#F6F6F6] disabled:text-[#D6D6D6]",
variant === "critical" &&
"text-[#FF4517] bg-[#FEF3F2] hover:bg-[#FEE4E2]",
variant === "secondary" &&
@@ -36,9 +36,14 @@ function NewButton({
"bg-[#F8F7FE] text-[#7B60F3] hover:bg-[#E1DEFC] active:bg-[#F8F7FE]",
variant === "cta" &&
"bg-[#7B60F3] text-white hover:bg-[#9184F6] active:bg-[#B3AAF9]",
- size === "large" && "2xl:p-[1.111vw] p-4 button-m",
- size === "medium" && "2xl:p-[0.833vw] p-3 button-s",
- size === "small" && "2xl:p-[0.556vw] p-2 text-[10px]",
+ variant === "menu" &&
+ "text-[#7D7D7D] hover:bg-[#F0F0F0] active:bg-[#F8F7FE] active:text-[#7B60F3] disabled:text-[#D6D6D6] disabled:bg-[#F6F6F6]",
+ size === "large" &&
+ "2xl:p-[1.111vw] p-4 button-m 2xl:rounded-[0.833vw] rounded-xl",
+ size === "medium" &&
+ "2xl:p-[0.833vw] p-3 button-s 2xl:rounded-[0.833vw] rounded-xl",
+ size === "small" &&
+ "2xl:p-[0.556vw] p-2 text-[10px] 2xl:rounded-[0.556vw] rounded-lg",
className
)}
>
diff --git a/src/components/SessionCard.tsx b/src/components/SessionCard.tsx
index 2d53afc..50cbd01 100644
--- a/src/components/SessionCard.tsx
+++ b/src/components/SessionCard.tsx
@@ -6,7 +6,7 @@ function SessionCard({ session }: { session: Session }) {
const { setModal, setPosition } = useModalStore();
return (
{
setModal(
);
setPosition("right");
diff --git a/src/components/icons/AppsIcon.tsx b/src/components/icons/AppsIcon.tsx
new file mode 100644
index 0000000..db9132d
--- /dev/null
+++ b/src/components/icons/AppsIcon.tsx
@@ -0,0 +1,28 @@
+function AppsIcon() {
+ return (
+
+ );
+}
+
+export default AppsIcon;
diff --git a/src/components/icons/ClientIcon.tsx b/src/components/icons/ClientIcon.tsx
new file mode 100644
index 0000000..111cd0b
--- /dev/null
+++ b/src/components/icons/ClientIcon.tsx
@@ -0,0 +1,22 @@
+function ClientIcon() {
+ return (
+
+ );
+}
+
+export default ClientIcon;
diff --git a/src/components/modals/EditTableModal.tsx b/src/components/modals/EditTableModal.tsx
index 40c2894..e77694a 100644
--- a/src/components/modals/EditTableModal.tsx
+++ b/src/components/modals/EditTableModal.tsx
@@ -41,9 +41,11 @@ function EditTable({ table }: { table: Server }) {
isError={tableName.length > 16}
errorMessage="Не больше 16 символов"
/>
-
- Придумайте название до 16 символов, например «Тузик»
-
+ {tableName.length <= 16 && (
+
+ Придумайте название до 16 символов, например «Тузик»
+
+ )}
20}
errorMessage="Не больше 20 символов"
/>
-
- Придумайте описание до 20 символов, например «Расположен в офисе»
-
+ {tableDescription.length <= 20 && (
+
+ Придумайте описание до 20 символов, например «Расположен в офисе»
+
+ )}
16 ||
@@ -72,6 +77,7 @@ function EditTable({ table }: { table: Server }) {
setModal(null)}
>
diff --git a/src/components/modals/SessionModal.tsx b/src/components/modals/SessionModal.tsx
index 8a4955a..5a1291a 100644
--- a/src/components/modals/SessionModal.tsx
+++ b/src/components/modals/SessionModal.tsx
@@ -14,7 +14,7 @@ import SessionComments from "../SessionComments";
function SessionModal({ session }: { session: Session }) {
return (
-
+
{format(session.createdAt, "dd MMMM yyyy", { locale: ru })}
, {format(session.createdAt, "HH:mm")}