From 9f04a6d38d5e54a31e50fac414daa38861a89132 Mon Sep 17 00:00:00 2001 From: vgcman16 <155417613+vgcman16@users.noreply.github.com> Date: Thu, 5 Jun 2025 20:24:35 -0500 Subject: [PATCH] Add GitHub repo clone button --- app/components/chat/BaseChat.tsx | 2 -- .../chat/chatExportAndImport/ImportButtons.tsx | 12 ++++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index 07e98068..3d3fee88 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -16,7 +16,6 @@ import * as Tooltip from '@radix-ui/react-tooltip'; import styles from './BaseChat.module.scss'; import { ImportButtons } from '~/components/chat/chatExportAndImport/ImportButtons'; import { ExamplePrompts } from '~/components/chat/ExamplePrompts'; -import GitCloneButton from './GitCloneButton'; import type { ProviderInfo } from '~/types/model'; import StarterTemplates from './StarterTemplates'; import type { ActionAlert, SupabaseAlert, DeployAlert } from '~/types/actions'; @@ -489,7 +488,6 @@ export const BaseChat = React.forwardRef( {!chatStarted && (
{ImportButtons(importChat)} -
)}
diff --git a/app/components/chat/chatExportAndImport/ImportButtons.tsx b/app/components/chat/chatExportAndImport/ImportButtons.tsx index c1835587..f23b4e28 100644 --- a/app/components/chat/chatExportAndImport/ImportButtons.tsx +++ b/app/components/chat/chatExportAndImport/ImportButtons.tsx @@ -1,6 +1,7 @@ import type { Message } from 'ai'; import { toast } from 'react-toastify'; import { ImportFolderButton } from '~/components/chat/ImportFolderButton'; +import GitCloneButton from '../GitCloneButton'; import { Button } from '~/components/ui/Button'; import { classNames } from '~/utils/classNames'; @@ -89,6 +90,17 @@ export function ImportButtons(importChat: ((description: string, messages: Messa 'transition-all duration-200 ease-in-out rounded-lg', )} /> +