From 2339e31af9e90bf918f5bcd4f23114f38cef0313 Mon Sep 17 00:00:00 2001 From: towfiqi Date: Sat, 11 Nov 2023 11:29:59 +0600 Subject: [PATCH] feat: Domains now show their favicon. closes #130 --- components/common/Sidebar.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/common/Sidebar.tsx b/components/common/Sidebar.tsx index d88840d..e75b187 100644 --- a/components/common/Sidebar.tsx +++ b/components/common/Sidebar.tsx @@ -1,3 +1,4 @@ +/* eslint-disable @next/next/no-img-element */ import React from 'react'; import Link from 'next/link'; import { useRouter } from 'next/router'; @@ -26,11 +27,11 @@ const Sidebar = ({ domains, showAddModal } : SidebarProps) => { rounded-r-none ${((`/domain/${d.slug}` === router.asPath || `/domain/console/${d.slug}` === router.asPath || `/domain/insight/${d.slug}` === router.asPath) ? 'bg-white text-zinc-800 border border-r-0' : 'text-zinc-500')}`}> - - {d.domain.charAt(0)} - + {d.domain} {d.domain} - {/* 0 */} )