Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions frontend/src/components/IntegrationsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import GoogleSvg from "@/assets/google-logo.svg"
import GithubSvg from "@/assets/github.svg"
import microsoftSvg from "@/assets/microsoft.svg"
import { useLocation, useRouter } from "@tanstack/react-router"
import { Upload, Key } from "lucide-react"
import { Key } from "lucide-react"

export const IntegrationsSidebar = ({
role,
Expand Down Expand Up @@ -87,21 +87,7 @@ export const IntegrationsSidebar = ({
Github
</span>
</li>
{isAgentMode && (
<li
className={`group flex justify-between items-center ${location.pathname.includes("/integrations/fileupload") ? "bg-[#EBEFF2] dark:bg-slate-700" : ""} hover:bg-[#EBEFF2] dark:hover:bg-slate-700 rounded-[6px] pt-[8px] pb-[8px] ml-[8px] mr-[8px] cursor-pointer`}
onClick={() => {
router.navigate({
to: "/integrations/fileupload",
})
}}
>
<Upload className="w-4 h-4 ml-[8px] dark:text-gray-300" />
<span className="text-[14px] dark:text-gray-200 pl-[10px] pr-[10px] truncate cursor-pointer flex-grow max-w-[250px]">
File Upload
</span>
</li>
)}

<li
className={`group flex justify-between items-center ${location.pathname.includes("/integrations/apiKey") ? "bg-[#EBEFF2] dark:bg-slate-700" : ""} hover:bg-[#EBEFF2] dark:hover:bg-slate-700 rounded-[6px] pt-[8px] pb-[8px] ml-[8px] mr-[8px] cursor-pointer`}
onClick={() => {
Expand Down
Loading
Loading