@aslaluroba/help-center-react 3.2.9 → 3.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.esm.js +7 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/ui/chatbot-popup/chat-window-screen/header.tsx +4 -0
- package/src/ui/chatbot-popup/chat-window-screen/in-chat-review.tsx +4 -3
package/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { useLocalTranslation } from "@/useLocalTranslation";
|
|
3
|
+
import { cn } from "@/lib/utils";
|
|
2
4
|
import ActionButton from "./action-button";
|
|
3
5
|
import SolarAltArrowLeftLinear from '~icons/solar/alt-arrow-left-linear'
|
|
4
6
|
import IcRoundMinus from '~icons/ic/round-minus'
|
|
@@ -17,6 +19,7 @@ const ChatWindowHeader: React.FC<ChatWindowHeaderProps> = ({
|
|
|
17
19
|
handleMinimize,
|
|
18
20
|
optionTitle,
|
|
19
21
|
}) => {
|
|
22
|
+
const { i18n } = useLocalTranslation();
|
|
20
23
|
|
|
21
24
|
return (
|
|
22
25
|
<header className="bg-header babylai:flex babylai:items-center babylai:justify-between babylai:p-6 babylai:border-b babylai:border-black-white-200">
|
|
@@ -25,6 +28,7 @@ const ChatWindowHeader: React.FC<ChatWindowHeaderProps> = ({
|
|
|
25
28
|
onClick={handleBack}
|
|
26
29
|
icon={<SolarAltArrowLeftLinear />}
|
|
27
30
|
ariaLabel="Back"
|
|
31
|
+
className={cn(i18n.language === 'ar' && 'babylai:rotate-180')}
|
|
28
32
|
/>
|
|
29
33
|
|
|
30
34
|
<ActionButton
|
|
@@ -3,6 +3,7 @@ import { ReviewProps } from '@/lib/types';
|
|
|
3
3
|
import { Rating } from '@/ui/review-dialog/rating';
|
|
4
4
|
import { useLocalTranslation } from '@/useLocalTranslation';
|
|
5
5
|
import LogoIcon from '@/assets/logo.svg';
|
|
6
|
+
import { Button } from '@/components';
|
|
6
7
|
|
|
7
8
|
interface InChatReviewProps {
|
|
8
9
|
onSubmit: (payload: ReviewProps) => void | Promise<void>;
|
|
@@ -56,10 +57,10 @@ export const InChatReview: React.FC<InChatReviewProps> = ({ onSubmit, isSubmitti
|
|
|
56
57
|
aria-label={t('homeSdk.InChatReview.note_placeholder')}
|
|
57
58
|
/>
|
|
58
59
|
|
|
59
|
-
<
|
|
60
|
+
<Button
|
|
61
|
+
variant='default'
|
|
60
62
|
onClick={handleSubmit}
|
|
61
63
|
disabled={isSubmitting}
|
|
62
|
-
className="babylai:bg-primary babylai:border babylai:border-primary babylai:cursor-pointer babylai:disabled:bg-black-white-300 babylai:disabled:border-black-white-300 babylai:disabled:cursor-not-allowed babylai:disabled:text-white babylai:duration-200 babylai:ease-out babylai:flex babylai:gap-1 babylai:items-center babylai:justify-center babylai:p-3 babylai:relative babylai:rounded-2xl babylai:text-white babylai:text-xl babylai:transition-all babylai:w-full"
|
|
63
64
|
>
|
|
64
65
|
{isSubmitting ? (
|
|
65
66
|
<>
|
|
@@ -72,7 +73,7 @@ export const InChatReview: React.FC<InChatReviewProps> = ({ onSubmit, isSubmitti
|
|
|
72
73
|
) : (
|
|
73
74
|
t('homeSdk.InChatReview.submit_button')
|
|
74
75
|
)}
|
|
75
|
-
</
|
|
76
|
+
</Button>
|
|
76
77
|
</>
|
|
77
78
|
)}
|
|
78
79
|
</div>
|