Skip to content

Commit

Permalink
feat: toggle history list visible after clock icon clicked (#31)
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <wonglam@amazon.com>
  • Loading branch information
wanglam authored and ruanyl committed Nov 22, 2023
1 parent f002a1c commit 8347146
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/tabs/chat_window_header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ export const ChatWindowHeader: React.FC<ChatWindowHeaderProps> = React.memo((pro
color="text"
onClick={() => {
chatContext.setFlyoutComponent(undefined);
chatContext.setSelectedTabId('history');
// Back to chat tab if history page already visible
chatContext.setSelectedTabId(
chatContext.selectedTabId === 'history' ? 'chat' : 'history'
);
}}
display={chatContext.selectedTabId === 'history' ? 'fill' : undefined}
/>
Expand Down

0 comments on commit 8347146

Please sign in to comment.