Skip to content

Commit e4dbdea

Browse files
committed
Make title prop mandatory for top bar
1 parent a90bd64 commit e4dbdea

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/ui-components/src/components/assistant-ui/assistant-top-bar.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Popover, PopoverContent, PopoverTrigger } from '../../ui/popover';
1010
type AssistantTopBarProps = {
1111
onClose: () => void;
1212
onNewChat: () => void;
13-
title?: string;
13+
title: string;
1414
isTitleDefault?: boolean;
1515
onHistoryOpenChange?: (open: boolean) => void;
1616
isHistoryOpen?: boolean;
@@ -30,9 +30,8 @@ const AssistantTopBar = ({
3030
chatId,
3131
isTitleDefault,
3232
}: AssistantTopBarProps) => {
33-
const baseTitle = t('OpenOps Assistant');
3433
const animatedTitle = useTypingAnimation({
35-
text: title || baseTitle,
34+
text: title,
3635
speed: 50,
3736
chatId: chatId,
3837
isDefault: isTitleDefault,

0 commit comments

Comments
 (0)