Add GitHub repo clone button

This commit is contained in:
vgcman16 2025-06-05 20:24:35 -05:00
parent 7e6955dd04
commit 9f04a6d38d
2 changed files with 12 additions and 2 deletions

View File

@ -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<HTMLDivElement, BaseChatProps>(
{!chatStarted && (
<div className="flex justify-center gap-2">
{ImportButtons(importChat)}
<GitCloneButton importChat={importChat} />
</div>
)}
<div className="flex flex-col gap-5">

View File

@ -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',
)}
/>
<GitCloneButton
importChat={importChat}
className={classNames(
'gap-2 bg-bolt-elements-background-depth-1',
'text-bolt-elements-textPrimary',
'hover:bg-bolt-elements-background-depth-2',
'border border-bolt-elements-borderColor',
'h-10 px-4 py-2 min-w-[120px] justify-center',
'transition-all duration-200 ease-in-out',
)}
/>
</div>
</div>
</div>