Skip to content

Commit b709007

Browse files
committed
feat(dojo): more suggestions across examples
Signed-off-by: Tyler Slaton <[email protected]>
1 parent 62cfd68 commit b709007

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

typescript-sdk/apps/dojo/src/app/[integrationId]/feature/tool_based_generative_ui/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface Haiku {
2727
export default function ToolBasedGenerativeUI({ params }: ToolBasedGenerativeUIProps) {
2828
const { integrationId } = React.use(params);
2929

30-
const sharedChatProps = {
30+
const chatProps = {
3131
defaultOpen: true,
3232
labels: {
3333
title: "Haiku Generator",
@@ -47,8 +47,7 @@ export default function ToolBasedGenerativeUI({ params }: ToolBasedGenerativeUIP
4747
showDevConsole={false}
4848
agent="tool_based_generative_ui"
4949
>
50-
<CopilotSidebar className="hidden xl:block" {...sharedChatProps} />
51-
<CopilotPopup className="xl:hidden" {...sharedChatProps} />
50+
<CopilotSidebar {...chatProps} />
5251
<HaikuDisplay />
5352
</CopilotKit>
5453
);

0 commit comments

Comments
 (0)