fix mock data names

This commit is contained in:
Pavel Prichodko 2023-02-28 14:57:51 +01:00
parent 20eeaa8791
commit 838180c9d5
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
1 changed files with 30 additions and 7 deletions

View File

@ -1,46 +1,51 @@
import { Basketball, Collaboration, Fire, Peach, Play, Unicorn } from '../emoji' import { Basketball, Collaboration, Fire, Peach, Play, Unicorn } from '../emoji'
interface Channels { export interface Channel {
id: string id: string
title: string title: string
description: string
icon?: React.ReactNode icon?: React.ReactNode
channelStatus?: 'muted' | 'normal' | 'withMessages' | 'withMentions' channelStatus?: 'muted' | 'normal' | 'withMessages' | 'withMentions'
numberOfMessages?: number numberOfMessages?: number
} }
export interface CommunityProps { export interface ChannelGroup {
id: string id: string
title: string title: string
numberOfNewMessages?: number unreadCount?: number
channels: Channels[] channels: Channel[]
} }
// MOCK DATA // MOCK DATA
export const COMMUNITIES: CommunityProps[] = [ export const CHANNEL_GROUPS: ChannelGroup[] = [
{ {
id: 'welcome', id: 'welcome',
title: 'Welcome', title: 'Welcome',
numberOfNewMessages: 3, unreadCount: 3,
channels: [ channels: [
{ {
id: 'welcome', id: 'welcome',
title: '# welcome', title: '# welcome',
icon: <Collaboration hasBackground />, icon: <Collaboration hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'general-welcome', id: 'general-welcome',
title: '# general', title: '# general',
icon: <Play hasBackground />, icon: <Play hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'random', id: 'random',
title: '# random', title: '# random',
icon: <Fire hasBackground />, icon: <Fire hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'onboarding', id: 'onboarding',
title: '# onboarding', title: '# onboarding',
icon: <Unicorn hasBackground />, icon: <Unicorn hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
channelStatus: 'withMentions', channelStatus: 'withMentions',
numberOfMessages: 3, numberOfMessages: 3,
}, },
@ -49,12 +54,13 @@ export const COMMUNITIES: CommunityProps[] = [
{ {
id: 'community', id: 'community',
title: 'Community', title: 'Community',
numberOfNewMessages: 5, unreadCount: 5,
channels: [ channels: [
{ {
id: 'announcements', id: 'announcements',
title: '# announcements', title: '# announcements',
icon: <Peach hasBackground />, icon: <Peach hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'jobs', id: 'jobs',
@ -62,6 +68,7 @@ export const COMMUNITIES: CommunityProps[] = [
channelStatus: 'withMentions', channelStatus: 'withMentions',
numberOfMessages: 3, numberOfMessages: 3,
icon: <Play hasBackground />, icon: <Play hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'events', id: 'events',
@ -69,11 +76,13 @@ export const COMMUNITIES: CommunityProps[] = [
channelStatus: 'withMentions', channelStatus: 'withMentions',
numberOfMessages: 2, numberOfMessages: 2,
icon: <Fire hasBackground />, icon: <Fire hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'meetups', id: 'meetups',
title: '# meetups', title: '# meetups',
icon: <Unicorn hasBackground />, icon: <Unicorn hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
], ],
}, },
@ -85,21 +94,25 @@ export const COMMUNITIES: CommunityProps[] = [
id: 'design', id: 'design',
title: '# design', title: '# design',
icon: <Collaboration hasBackground />, icon: <Collaboration hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'ux', id: 'ux',
title: '# ux', title: '# ux',
icon: <Play hasBackground />, icon: <Play hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'ui', id: 'ui',
title: '# ui', title: '# ui',
icon: <Fire hasBackground />, icon: <Fire hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'figma', id: 'figma',
title: '# figma', title: '# figma',
icon: <Unicorn hasBackground />, icon: <Unicorn hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
], ],
}, },
@ -111,11 +124,13 @@ export const COMMUNITIES: CommunityProps[] = [
id: 'general', id: 'general',
title: '# general', title: '# general',
icon: <Collaboration hasBackground />, icon: <Collaboration hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'people-ops', id: 'people-ops',
title: '# people-ops', title: '# people-ops',
icon: <Basketball hasBackground />, icon: <Basketball hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
], ],
}, },
@ -127,23 +142,27 @@ export const COMMUNITIES: CommunityProps[] = [
id: 'react', id: 'react',
title: '# react', title: '# react',
icon: <Collaboration hasBackground />, icon: <Collaboration hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
channelStatus: 'withMessages', channelStatus: 'withMessages',
}, },
{ {
id: 'vue', id: 'vue',
title: '# vue', title: '# vue',
icon: <Play hasBackground />, icon: <Play hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'angular', id: 'angular',
title: '# angular', title: '# angular',
channelStatus: 'muted', channelStatus: 'muted',
icon: <Fire hasBackground />, icon: <Fire hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'svelte', id: 'svelte',
title: '# svelte', title: '# svelte',
icon: <Unicorn hasBackground />, icon: <Unicorn hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
], ],
}, },
@ -155,22 +174,26 @@ export const COMMUNITIES: CommunityProps[] = [
id: 'node', id: 'node',
title: '# node', title: '# node',
icon: <Collaboration hasBackground />, icon: <Collaboration hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'python', id: 'python',
title: '# python', title: '# python',
icon: <Play hasBackground />, icon: <Play hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'ruby', id: 'ruby',
title: '# ruby', title: '# ruby',
icon: <Fire hasBackground />, icon: <Fire hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
{ {
id: 'php', id: 'php',
title: '# php', title: '# php',
channelStatus: 'muted', channelStatus: 'muted',
icon: <Unicorn hasBackground />, icon: <Unicorn hasBackground />,
description: 'Share random funny stuff with the community. Play nice.',
}, },
], ],
}, },