From af5a91a06fb7f3c4a80d3c4387015b3759b30b71 Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Tue, 28 Feb 2023 14:57:51 +0100 Subject: [PATCH] fix mock data names --- packages/components/src/sidebar/mock-data.tsx | 37 +++++++++++++++---- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/packages/components/src/sidebar/mock-data.tsx b/packages/components/src/sidebar/mock-data.tsx index 24f3e46a..55651a45 100644 --- a/packages/components/src/sidebar/mock-data.tsx +++ b/packages/components/src/sidebar/mock-data.tsx @@ -1,46 +1,51 @@ import { Basketball, Collaboration, Fire, Peach, Play, Unicorn } from '../emoji' -interface Channels { +export interface Channel { id: string title: string + description: string icon?: React.ReactNode channelStatus?: 'muted' | 'normal' | 'withMessages' | 'withMentions' numberOfMessages?: number } -export interface CommunityProps { +export interface ChannelGroup { id: string title: string - numberOfNewMessages?: number - channels: Channels[] + unreadCount?: number + channels: Channel[] } // MOCK DATA -export const COMMUNITIES: CommunityProps[] = [ +export const CHANNEL_GROUPS: ChannelGroup[] = [ { id: 'welcome', title: 'Welcome', - numberOfNewMessages: 3, + unreadCount: 3, channels: [ { id: 'welcome', title: '# welcome', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'general-welcome', title: '# general', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'random', title: '# random', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'onboarding', title: '# onboarding', icon: , + description: 'Share random funny stuff with the community. Play nice.', channelStatus: 'withMentions', numberOfMessages: 3, }, @@ -49,12 +54,13 @@ export const COMMUNITIES: CommunityProps[] = [ { id: 'community', title: 'Community', - numberOfNewMessages: 5, + unreadCount: 5, channels: [ { id: 'announcements', title: '# announcements', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'jobs', @@ -62,6 +68,7 @@ export const COMMUNITIES: CommunityProps[] = [ channelStatus: 'withMentions', numberOfMessages: 3, icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'events', @@ -69,11 +76,13 @@ export const COMMUNITIES: CommunityProps[] = [ channelStatus: 'withMentions', numberOfMessages: 2, icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'meetups', title: '# meetups', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, ], }, @@ -85,21 +94,25 @@ export const COMMUNITIES: CommunityProps[] = [ id: 'design', title: '# design', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'ux', title: '# ux', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'ui', title: '# ui', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'figma', title: '# figma', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, ], }, @@ -111,11 +124,13 @@ export const COMMUNITIES: CommunityProps[] = [ id: 'general', title: '# general', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'people-ops', title: '# people-ops', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, ], }, @@ -127,23 +142,27 @@ export const COMMUNITIES: CommunityProps[] = [ id: 'react', title: '# react', icon: , + description: 'Share random funny stuff with the community. Play nice.', channelStatus: 'withMessages', }, { id: 'vue', title: '# vue', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'angular', title: '# angular', channelStatus: 'muted', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'svelte', title: '# svelte', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, ], }, @@ -155,22 +174,26 @@ export const COMMUNITIES: CommunityProps[] = [ id: 'node', title: '# node', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'python', title: '# python', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'ruby', title: '# ruby', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, { id: 'php', title: '# php', channelStatus: 'muted', icon: , + description: 'Share random funny stuff with the community. Play nice.', }, ], },