Skip to content

Commit

Permalink
change config to disableConversations
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-work committed Sep 3, 2024
1 parent f1b4eb6 commit 304b0b4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/components/shared/Layout/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const AppLayout = ({ children }: Props) => {

return (
<div
tabIndex={-1}
id="gooeyChat-container"
className={clsx(
"overflow-hidden gooeyChat-widget-container",
Expand Down
5 changes: 1 addition & 4 deletions src/contexts/SystemContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ const SystemContextProvider = ({
showCloseButton: !isInline || false,
showSidebarButton: false,
showFocusModeButton: !isInline || false,
showNewConversationButton:
config?.enableConversations === undefined
? true
: config?.enableConversations,
showNewConversationButton: !config?.disableConversations,
isMobile: false,
});
const forceHideSidebar = !layoutState?.showNewConversationButton;
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface CopilotConfigType {
enableAudioMessage: boolean;
enablePhotoUpload: boolean;
enableLipsyncVideo: boolean;
enableConversations: boolean;
disableConversations: boolean;
autoPlayResponses: boolean;
showSources: boolean;
expandedSources: boolean;
Expand Down
4 changes: 3 additions & 1 deletion src/css/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ ul {
.gooey-embed-container a {
text-decoration: none;
}

div:focus-visible {
outline: none;
}
::-webkit-scrollbar {
background: transparent;
color: white;
Expand Down

0 comments on commit 304b0b4

Please sign in to comment.