Skip to content

Commit

Permalink
added link for the blog
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshamoon committed Mar 12, 2024
1 parent d9ee27b commit 6f0b19b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/UI/ListIcon/ListIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -63,6 +64,7 @@ export const ListIcon = ({ icon = '', selected = false, count }: ListIconProps)
logout: LogoutIcon,
organization: OrganizationIcon,
consulting: ConsultingIcon,
new: FiberNewIcon,
};

const iconImage = stringsToIcons[icon] && (
Expand Down
2 changes: 2 additions & 0 deletions src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/';
12 changes: 11 additions & 1 deletion src/config/menu.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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') =>
Expand Down

0 comments on commit 6f0b19b

Please sign in to comment.