From 6f0b19be5bfaf65c1606ec5bc60c26552bc13154 Mon Sep 17 00:00:00 2001 From: mdshamoon Date: Tue, 12 Mar 2024 22:16:07 +0530 Subject: [PATCH] added link for the blog --- src/components/UI/ListIcon/ListIcon.tsx | 2 ++ src/config/index.ts | 2 ++ src/config/menu.ts | 12 +++++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/components/UI/ListIcon/ListIcon.tsx b/src/components/UI/ListIcon/ListIcon.tsx index d05385fe0..90b18368a 100644 --- a/src/components/UI/ListIcon/ListIcon.tsx +++ b/src/components/UI/ListIcon/ListIcon.tsx @@ -25,6 +25,7 @@ import LogoutIcon from 'assets/images/icons/SideDrawer/LogoutIcon'; import OrganizationIcon from 'assets/images/icons/SideDrawer/OrganizationIcon'; import ConsultingIcon from 'assets/images/icons/SideDrawer/ConsultingIcon'; import styles from './ListIcon.module.css'; +import FiberNewIcon from '@mui/icons-material/FiberNew'; import { Badge } from '@mui/material'; export interface ListIconProps { @@ -63,6 +64,7 @@ export const ListIcon = ({ icon = '', selected = false, count }: ListIconProps) logout: LogoutIcon, organization: OrganizationIcon, consulting: ConsultingIcon, + new: FiberNewIcon, }; const iconImage = stringsToIcons[icon] && ( diff --git a/src/config/index.ts b/src/config/index.ts index b059db440..adf2bf44b 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -63,3 +63,5 @@ export const SAMPLE_SHEET_LINK = 'https://docs.google.com/spreadsheets/d/1fRpFyicqrUFxd79u_dGC8UOHEtAT3rA-G2i4tvOgScw'; export const BULK_APPLY_SAMPLE_LINK = 'https://docs.google.com/spreadsheets/d/1x04wI9palh1Ag11TrdBbUj9pnyNOw8-I4834qN3idik'; + +export const NEW_UI_BLOG = 'https://glific.org/glific-new-interface-changes/'; diff --git a/src/config/menu.ts b/src/config/menu.ts index 82eddd953..38a9dbc86 100644 --- a/src/config/menu.ts +++ b/src/config/menu.ts @@ -1,11 +1,12 @@ import { organizationHasDynamicRole } from 'common/utils'; -import { ANALYTICS_URL, GLIFIC_DOCS_URL } from 'config'; +import { ANALYTICS_URL, GLIFIC_DOCS_URL, NEW_UI_BLOG } from 'config'; import { getOrganizationServices } from 'services/AuthService'; const allRoles = ['Staff', 'Manager', 'Admin', 'Dynamic', 'Glific_admin']; const adminLevel = ['Admin', 'Glific_admin']; const managerLevel = ['Manager', 'Admin', 'Dynamic', 'Glific_admin']; const staffLevel = ['Staff', 'Manager', 'Admin', 'Dynamic', 'Glific_admin']; + export interface Menu { title: string; path: string; @@ -236,6 +237,15 @@ const menus = (): Menu[] => [ type: 'sideDrawer', roles: staffLevel, }, + + { + title: "What's new", + path: '/changelog', + url: NEW_UI_BLOG, + icon: 'new', + type: 'sideDrawer', + roles: staffLevel, + }, ]; export const getMenus = (menuType = 'sideDrawer', role = 'Staff') =>