diff --git a/src/components/domains/chat/CategoryChats/CategoryChats.tsx b/src/components/domains/chat/CategoryChats/CategoryChats.tsx index 5215927..0c5c30c 100644 --- a/src/components/domains/chat/CategoryChats/CategoryChats.tsx +++ b/src/components/domains/chat/CategoryChats/CategoryChats.tsx @@ -31,7 +31,7 @@ export default function CategoryChats({ userAvatar={{ src: chat.assistantAvatar, alt: chat.assistantName, - isOnline: chat.status === "active", + isOnline: chat.assistantStatus === "online", }} name={chat.assistantName} messagePreiew={ diff --git a/src/components/domains/chat/ChatHeader/ChatHeader.tsx b/src/components/domains/chat/ChatHeader/ChatHeader.tsx index f54befe..69be1bf 100644 --- a/src/components/domains/chat/ChatHeader/ChatHeader.tsx +++ b/src/components/domains/chat/ChatHeader/ChatHeader.tsx @@ -72,7 +72,7 @@ export default function ChatHeader() { {currentChat?.assistantName} diff --git a/src/components/domains/chat/CorrespondenceStarted/CorrespondenceStarted.tsx b/src/components/domains/chat/CorrespondenceStarted/CorrespondenceStarted.tsx index 7053a1f..5af6d8f 100644 --- a/src/components/domains/chat/CorrespondenceStarted/CorrespondenceStarted.tsx +++ b/src/components/domains/chat/CorrespondenceStarted/CorrespondenceStarted.tsx @@ -52,7 +52,7 @@ export default function CorrespondenceStarted({ userAvatar={{ src: chat.assistantAvatar, alt: chat.assistantName, - isOnline: chat.status === "active", + isOnline: chat.assistantStatus === "online", }} name={chat.assistantName} messagePreiew={ diff --git a/src/components/domains/chat/NewMessages/NewMessages.tsx b/src/components/domains/chat/NewMessages/NewMessages.tsx index 7997c2f..7fefd64 100644 --- a/src/components/domains/chat/NewMessages/NewMessages.tsx +++ b/src/components/domains/chat/NewMessages/NewMessages.tsx @@ -51,7 +51,7 @@ export default function NewMessages({ userAvatar={{ src: chat.assistantAvatar, alt: chat.assistantName, - isOnline: chat.status === "active", + isOnline: chat.assistantStatus === "online", }} name={chat.assistantName} messagePreiew={ diff --git a/src/components/domains/profile/subscriptions/SubscriptionTable/SubscriptionTable.module.scss b/src/components/domains/profile/subscriptions/SubscriptionTable/SubscriptionTable.module.scss index 02b59df..c781020 100644 --- a/src/components/domains/profile/subscriptions/SubscriptionTable/SubscriptionTable.module.scss +++ b/src/components/domains/profile/subscriptions/SubscriptionTable/SubscriptionTable.module.scss @@ -31,3 +31,12 @@ font-weight: 600; } } + +.buttonCancel.buttonCancel { + background-color: transparent; + padding: 0; + + & > .buttonCancelText { + text-decoration: underline; + } +} diff --git a/src/components/domains/profile/subscriptions/SubscriptionTable/SubscriptionTable.tsx b/src/components/domains/profile/subscriptions/SubscriptionTable/SubscriptionTable.tsx index 81e7fb0..1883776 100644 --- a/src/components/domains/profile/subscriptions/SubscriptionTable/SubscriptionTable.tsx +++ b/src/components/domains/profile/subscriptions/SubscriptionTable/SubscriptionTable.tsx @@ -71,7 +71,7 @@ export default function SubscriptionTable({ subscription }: ITableProps) { className={styles.buttonCancel} onClick={() => open(subscription)} > - + {t("table.cancel_subscription")} , diff --git a/src/entities/chats/types.ts b/src/entities/chats/types.ts index 6914571..de675eb 100644 --- a/src/entities/chats/types.ts +++ b/src/entities/chats/types.ts @@ -22,6 +22,7 @@ const ChatSchema = z.object({ unreadCount: z.number(), updatedAt: z.string(), status: z.string(), + assistantStatus: z.string(), category: z.string(), });