Skip to content

Commit

Permalink
Remove unused Files Connect button and setup Github content card
Browse files Browse the repository at this point in the history
  • Loading branch information
debanjum committed Jul 30, 2024
1 parent ecb873c commit 2c76981
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
4 changes: 0 additions & 4 deletions src/interface/web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ function ChatBodyData(props: ChatBodyDataProps) {
}
}

function getTailwindBorderClass(color: string): string {
return colorMap[color] || 'border-black'; // Default to black if color not found
}

return (
<div className={`${styles.chatBoxBody}`}>
<div className="w-full text-center">
Expand Down
14 changes: 4 additions & 10 deletions src/interface/web/app/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -731,15 +731,9 @@ export default function SettingsView() {
</CardContent>
<CardFooter className="flex flex-wrap gap-4">
<Button variant="outline" size="sm" onClick={() => setIsManageFilesModalOpen(true)}>
{userConfig.enabled_content_source.computer && (
<>
<Files className="h-5 w-5 inline mr-1" />Manage
</>
) || (
<>
<Plugs className="h-5 w-5 inline mr-1" />Connect
</>
)}
<>
<Files className="h-5 w-5 inline mr-1" />Manage
</>
</Button>
<Button
variant="outline"
Expand All @@ -751,7 +745,7 @@ export default function SettingsView() {
</Button>
</CardFooter>
</Card>
<Card className={cardClassName}>
<Card className={`${cardClassName} hidden`}>
<CardHeader className="text-xl flex flex-row text-2xl"><GithubLogo className="h-8 w-8 mr-2" />Github</CardHeader>
<CardContent className="overflow-hidden pb-12 text-gray-400">
Set Github repositories to index
Expand Down

0 comments on commit 2c76981

Please sign in to comment.