File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,7 @@ export default function Chatbot() {
103
103
}
104
104
} , [ messages ] ) ;
105
105
106
+ //powered by
106
107
return (
107
108
< >
108
109
< div className = "fixed bottom-4 right-4 z-50" >
@@ -112,17 +113,14 @@ export default function Chatbot() {
112
113
className = "bg-gray-900 text-gray-50 hover:bg-gray-900/90 dark:bg-gray-50 dark:text-gray-900 dark:hover:bg-gray-50/90"
113
114
onClick = { ( ) => setIsOpen ( ( prevState ) => ! prevState ) }
114
115
>
115
- < MessageCircleIcon className = "h-6 w-6" />
116
+ { isOpen ? < XIcon className = "h-6 w-6" /> : < MessageCircleIcon className = "h-6 w-6" /> }
116
117
< span className = "sr-only" > Open Chatbot</ span >
117
118
</ Button >
118
119
</ div >
119
120
{ /* "fixed top-[calc(50%-150px)] left-[calc(90%-100px)] transform -translate-x-1/2 z-50" */ }
120
121
{ isOpen && (
121
- < div
122
- className = "fixed inset-0 z-50 flex items-end justify-end p-4 sm:p-6 bottom-[50px]"
123
- onClick = { ( ) => setIsOpen ( ( prevState ) => ! prevState ) }
124
- >
125
- < Card className = "w-full max-w-md" >
122
+ < div className = "fixed inset-0 z-50 flex items-end justify-end p-4 sm:p-6 bottom-[50px]" >
123
+ < Card className = "w-full max-w-md border-2 border-grey-400" >
126
124
< CardHeader className = "flex flex-row items-center" >
127
125
< div className = "flex items-center space-x-4" >
128
126
< Avatar >
You can’t perform that action at this time.
0 commit comments