From 1c38710308e9a105d1bdbc97dc83fa5c850ad972 Mon Sep 17 00:00:00 2001 From: Gri-ffin Date: Tue, 2 Jan 2024 14:05:52 +0100 Subject: [PATCH] add social media links --- web/containers/Layout/Ribbon/index.tsx | 45 ++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/web/containers/Layout/Ribbon/index.tsx b/web/containers/Layout/Ribbon/index.tsx index fa6d53193..1a63b1d44 100644 --- a/web/containers/Layout/Ribbon/index.tsx +++ b/web/containers/Layout/Ribbon/index.tsx @@ -11,6 +11,8 @@ import { SettingsIcon, MonitorIcon, LayoutGridIcon, + Twitter, + Github, } from 'lucide-react' import { twMerge } from 'tailwind-merge' @@ -52,6 +54,23 @@ export default function RibbonNav() { }, ] + const linksMenu = [ + { + name: 'Twitter', + icon: ( + + ), + link: 'https://twitter.com/janhq', + }, + { + name: 'Github', + icon: ( + + ), + link: 'https://github.com/janhq/jan', + }, + ] + const secondaryMenus = [ { name: 'System Monitor', @@ -118,6 +137,32 @@ export default function RibbonNav() {
+ <> + {linksMenu + .filter((link) => !!link) + .map((link, i) => { + return ( +
+ + + + {link.icon} + + + + {link.name} + + + +
+ ) + })} + {secondaryMenus .filter((secondary) => !!secondary) .map((secondary, i) => {