From 014026c41d04b9d49ad4f5f17b5a55c7e4a381eb Mon Sep 17 00:00:00 2001
From: Ayush Chamoli <75367725+iamAyushChamoli@users.noreply.github.com>
Date: Mon, 23 Sep 2024 15:07:19 +0530
Subject: [PATCH] (Enhancement) Differenciate external links in the docs
sidebar (#956)
* (Enhancement) Differenciate external links in the docs sidebar
Fixes #942
* Enhancement: Differentiate External Links
Added an external svg instead of embedding it inline
---
components/Sidebar.tsx | 11 +++++++++--
public/icons/external-link-black.svg | 8 ++++++++
2 files changed, 17 insertions(+), 2 deletions(-)
create mode 100644 public/icons/external-link-black.svg
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx
index 1b1f37fb9..8f3f1b779 100644
--- a/components/Sidebar.tsx
+++ b/components/Sidebar.tsx
@@ -8,6 +8,7 @@ import { SegmentHeadline } from './Layout';
import extractPathWithoutFragment from '~/lib/extractPathWithoutFragment';
import CarbonAds from './CarbonsAds';
import { useTheme } from 'next-themes';
+import ExternalLinkIcon from '../public/icons/external-link-black.svg';
const DocLink = ({
uri,
@@ -64,7 +65,7 @@ const DocLinkBlank = ({
return (
{label}
+