Kaynağa Gözat

refactoring

Shun Miyazawa 1 yıl önce
ebeveyn
işleme
3f5b983006

+ 17 - 19
apps/app/src/features/openai/client/components/AiAssistant/AiAssistantChatSidebar/AiAssistantChatSidebar.tsx

@@ -418,25 +418,23 @@ export const AiAssistantChatSidebar: FC = memo((): JSX.Element => {
   }
   }
 
 
   return (
   return (
-    <>
-      <div
-        ref={sidebarRef}
-        className={`position-fixed top-0 end-0 h-100 border-start bg-white shadow-sm ${moduleClass}`}
-        style={{ zIndex: 1500, width: `${RIGHT_SIDEBAR_WIDTH}px` }}
-        data-testid="grw-right-sidebar"
+    <div
+      ref={sidebarRef}
+      className={`position-fixed top-0 end-0 h-100 border-start bg-white shadow-sm ${moduleClass}`}
+      style={{ zIndex: 1500, width: `${RIGHT_SIDEBAR_WIDTH}px` }}
+      data-testid="grw-right-sidebar"
+    >
+      <SimpleBar
+        scrollableNodeProps={{ ref: sidebarScrollerRef }}
+        className="h-100 position-relative"
+        autoHide
       >
       >
-        <SimpleBar
-          scrollableNodeProps={{ ref: sidebarScrollerRef }}
-          className="h-100 position-relative"
-          autoHide
-        >
-          <AiAssistantChatSidebarSubstance
-            threadId_={threadId}
-            aiAssistantData={aiAssistantData}
-            closeAiAssistantChatSidebar={closeAiAssistantChatSidebar}
-          />
-        </SimpleBar>
-      </div>
-    </>
+        <AiAssistantChatSidebarSubstance
+          threadId_={threadId}
+          aiAssistantData={aiAssistantData}
+          closeAiAssistantChatSidebar={closeAiAssistantChatSidebar}
+        />
+      </SimpleBar>
+    </div>
   );
   );
 });
 });