diff --git a/src/assets/images/icons/Discord/DiscordIcon.tsx b/src/assets/images/icons/Discord/DiscordIcon.tsx new file mode 100644 index 000000000..a6ca1edcb --- /dev/null +++ b/src/assets/images/icons/Discord/DiscordIcon.tsx @@ -0,0 +1,14 @@ +const SvgComponent = ({ color }: any) => ( + + {'Discord Icon'} + + + + + ); + export default SvgComponent; + \ No newline at end of file diff --git a/src/components/UI/ListIcon/ListIcon.tsx b/src/components/UI/ListIcon/ListIcon.tsx index 27f909353..d99110857 100644 --- a/src/components/UI/ListIcon/ListIcon.tsx +++ b/src/components/UI/ListIcon/ListIcon.tsx @@ -32,7 +32,7 @@ import Assistant from 'assets/images/icons/SideDrawer/Assistant'; import styles from './ListIcon.module.css'; import FiberNewIcon from '@mui/icons-material/FiberNew'; import { Badge } from '@mui/material'; - +import DiscordIcon from 'assets/images/icons/Discord/DiscordIcon' export interface ListIconProps { icon: string | undefined; count?: number; @@ -75,6 +75,7 @@ export const ListIcon = ({ icon = '', selected = false, count }: ListIconProps) waGroup: WaGroupIcon, knowledgeBase: KnowledgeBaseIcon, assistant: Assistant, + discord:DiscordIcon }; const iconImage = stringsToIcons[icon] && ( diff --git a/src/config/index.ts b/src/config/index.ts index 674be5f80..3aa63e38e 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -53,8 +53,11 @@ export const ONBOARD_URL_UPDATE = `${GLIFIC_API_URL}/v1/onboard/update-registrat export const ONBOARD_URL_REACT_OUT = `${GLIFIC_API_URL}/v1/onboard/reachout`; export const ONBOARD_URL = `${GLIFIC_API_URL}/v1/onboard/setup`; export const RECAPTCHA_CLIENT_KEY = envVariables.VITE_RECAPTCHA_CLIENT_KEY; -export const UPLOAD_CONTACTS_SAMPLE = 'https://storage.googleapis.com/cc-tides/sample_contacts_import.csv'; -export const UPLOAD_CONTACTS_ADMIN_SAMPLE = 'https://storage.googleapis.com/cc-tides/sample_import_admin.csv'; +export const DISCORD_URL='https://discord.gg/kyqsZAJEPK'; +export const UPLOAD_CONTACTS_SAMPLE = + 'https://storage.googleapis.com/cc-tides/sample_contacts_import.csv'; +export const UPLOAD_CONTACTS_ADMIN_SAMPLE = + 'https://storage.googleapis.com/cc-tides/sample_import_admin.csv'; export const REGISTRATION_HELP_LINK = 'https://glific.slab.com/public/posts/02-managing-staff-members-creating-account-on-glific-gg6fkw8h'; export const CONTACT_MANAGE_HELP_LINK = diff --git a/src/config/menu.ts b/src/config/menu.ts index 3ca3334d2..24245f506 100644 --- a/src/config/menu.ts +++ b/src/config/menu.ts @@ -1,5 +1,5 @@ import { organizationHasDynamicRole } from 'common/utils'; -import { ANALYTICS_URL, GLIFIC_DOCS_URL } from 'config'; +import { ANALYTICS_URL, GLIFIC_DOCS_URL, DISCORD_URL } from 'config'; import { getOrganizationServices } from 'services/AuthService'; const allRoles = ['Staff', 'Manager', 'Admin', 'Dynamic', 'Glific_admin']; @@ -279,14 +279,22 @@ const menus = (): Menu[] => [ roles: staffLevel, }, - // { - // title: "What's new", - // path: '/changelog', - // url: NEW_UI_BLOG, - // icon: 'new', - // type: 'sideDrawer', - // roles: staffLevel, - // }, + // { + // title: "What's new", + // path: '/changelog', + // url: NEW_UI_BLOG, + // icon: 'new', + // type: 'sideDrawer', + // roles: staffLevel, + // }, + { + title: "Discord", + path: '/discord', + url: DISCORD_URL, + icon: 'discord', + type: 'sideDrawer', + roles: staffLevel, + }, ]; export const getMenus = (menuType = 'sideDrawer', role = 'Staff') =>