From ddb920df7cfd9dd361eba96d7165b3e0636e700a Mon Sep 17 00:00:00 2001 From: SujalXplores Date: Fri, 13 Dec 2024 22:49:14 +0530 Subject: [PATCH] refactor: simplify GitCloneButton component by removing unused tooltip and streamlining button structure --- app/commit.json | 2 +- app/components/chat/GitCloneButton.tsx | 23 +++++++++-------------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/app/commit.json b/app/commit.json index 1287beaa..b292f05d 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "ff2726fd2fcf53a9fd2beac967f4c92c78d390bf" } +{ "commit": "56944de6337f5283f96f197e11432fee32c085b9" } diff --git a/app/components/chat/GitCloneButton.tsx b/app/components/chat/GitCloneButton.tsx index 7b7c9f7f..4fe4c55e 100644 --- a/app/components/chat/GitCloneButton.tsx +++ b/app/components/chat/GitCloneButton.tsx @@ -1,7 +1,6 @@ import ignore from 'ignore'; import { useGit } from '~/lib/hooks/useGit'; import type { Message } from 'ai'; -import WithTooltip from '~/components/ui/Tooltip'; import { detectProjectCommands, createCommandsMessage } from '~/utils/projectCommands'; import { generateId } from '~/utils/fileUtils'; @@ -73,7 +72,7 @@ export default function GitCloneButton({ importChat }: GitCloneButtonProps) { const filesMessage: Message = { role: 'assistant', content: `Cloning the repo ${repoUrl} into ${workdir} - + ${fileContents .map( (file) => @@ -99,17 +98,13 @@ ${file.content} }; return ( - - - + ); }