diff --git a/src/renderer/components/team/messages/MessagesPanel.tsx b/src/renderer/components/team/messages/MessagesPanel.tsx
index 97e8e49a..1c8aead9 100644
--- a/src/renderer/components/team/messages/MessagesPanel.tsx
+++ b/src/renderer/components/team/messages/MessagesPanel.tsx
@@ -920,7 +920,7 @@ export const MessagesPanel = memo(function MessagesPanel({
);
}, [bottomSheetSnapIndex]);
- const defaultComposerSection = (
+ const renderDefaultComposerSection = (): React.JSX.Element => (
);
- const floatingComposerModeControls = (
+ const renderFloatingComposerModeControls = (): React.JSX.Element => (
@@ -975,7 +975,7 @@ export const MessagesPanel = memo(function MessagesPanel({
);
- const compactComposerSection = (
+ const renderCompactComposerSection = (): React.JSX.Element => (
);
- const floatingComposerSection = (
+ const renderFloatingComposerSection = (): React.JSX.Element => (
);
- const inlineStatusSection = (
+ const renderInlineStatusSection = (): React.JSX.Element => (
);
- const sidebarStatusSection = (
+ const renderSidebarStatusSection = (): React.JSX.Element => (
);
- const timelineSection = (
+ const renderTimelineSection = (): React.JSX.Element => (
(
@@ -1116,9 +1116,9 @@ export const MessagesPanel = memo(function MessagesPanel({
);
- const searchAndFilterBar = (
+ const renderSearchAndFilterBar = (): React.JSX.Element => (
- {searchAndFilterControls}
+ {renderSearchAndFilterControls()}
);
@@ -1282,7 +1282,7 @@ export const MessagesPanel = memo(function MessagesPanel({
- {floatingComposerSection}
+ {renderFloatingComposerSection()}
@@ -1463,13 +1463,13 @@ export const MessagesPanel = memo(function MessagesPanel({
>
{messagesSearchBarVisible && (
- {searchAndFilterControls}
+ {renderSearchAndFilterControls()}
)}
- {compactComposerSection}
+ {renderCompactComposerSection()}
- {inlineStatusSection}
- {timelineSection}
+ {renderInlineStatusSection()}
+ {renderTimelineSection()}
)}
@@ -1562,9 +1562,9 @@ export const MessagesPanel = memo(function MessagesPanel({
}
defaultOpen
- action={{searchAndFilterBar}
}
+ action={{renderSearchAndFilterBar()}
}
>
- {messagesContent}
+ {renderMessagesContent()}
);
});