diff --git a/frontend/src/components/gdpr/gdprbanner.tsx b/frontend/src/components/gdpr/gdprbanner.tsx
index 0790d01f..05736898 100644
--- a/frontend/src/components/gdpr/gdprbanner.tsx
+++ b/frontend/src/components/gdpr/gdprbanner.tsx
@@ -129,7 +129,7 @@ const GDPRBanner: React.FC = () => {
Back
) : (
diff --git a/frontend/src/components/nav/Sidebar.tsx b/frontend/src/components/nav/Sidebar.tsx
index bbb9ba67..739b9262 100644
--- a/frontend/src/components/nav/Sidebar.tsx
+++ b/frontend/src/components/nav/Sidebar.tsx
@@ -1,4 +1,4 @@
-import { FaTimes } from "react-icons/fa";
+import { FaExternalLinkAlt, FaTimes } from "react-icons/fa";
import { useNavigate } from "react-router-dom";
import Logo from "@/components/Logo";
@@ -11,6 +11,7 @@ interface SidebarItemProps {
title: string;
icon?: JSX.Element;
onClick: () => void;
+ isExternal?: boolean;
}
interface SidebarProps {
@@ -18,14 +19,22 @@ interface SidebarProps {
onClose: () => void;
}
-const SidebarItem = ({ icon, title, onClick }: SidebarItemProps) => (
+const SidebarItem = ({
+ icon,
+ title,
+ onClick,
+ isExternal,
+}: SidebarItemProps) => (
{icon && {icon}}
- {title}
+
+ {title}
+ {isExternal && }
+
);
@@ -72,7 +81,7 @@ const Sidebar = ({ show, onClose }: SidebarProps) => {
title={listing.name}
onClick={() =>
handleItemClick(
- `/item/${listing.username}/${listing.slug || listing.id}`,
+ `/bot/${listing.username}/${listing.slug || listing.id}`,
)
}
/>
@@ -86,7 +95,10 @@ const Sidebar = ({ show, onClose }: SidebarProps) => {
key={item.name}
title={item.name}
icon={item.icon}
- onClick={() => handleItemClick(item.path)}
+ onClick={() =>
+ handleItemClick(item.path, item.isExternal)
+ }
+ isExternal={item.isExternal}
/>
))}