hide chat instead of unmount (#181)

This commit is contained in:
Ramnique Singh 2025-07-23 11:58:50 +05:30 committed by GitHub
parent 2da3f3708c
commit d99419ad61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -82,13 +82,10 @@ export function App({
}
}, []);
if (hidden) {
return <></>;
}
return (
<>
<Panel
className={`${hidden ? 'hidden' : 'block'}`}
variant="playground"
tourTarget="playground"
title={

View file

@ -47,6 +47,7 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(({
}
}, [propValue, isEditing]);
/*
useEffect(() => {
if (!autoResize) return;
@ -68,6 +69,7 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(({
window.addEventListener('resize', adjustHeight);
return () => window.removeEventListener('resize', adjustHeight);
}, [localValue, autoResize, maxHeight, textareaRef]);
*/
const validateAndUpdate = (value: string) => {
if (validate) {