File size: 1,020 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// @flow
import React from 'react';
import { SidebarSection } from 'src/views/community/style';
import { TeamMembersList } from 'src/views/community/components/teamMembersList';
import { ChannelsList } from 'src/views/community/components/channelsList';
import { CommunityProfileCard } from 'src/components/entities';
import { ErrorBoundary } from 'src/components/error';

type Props = {
  community: Object,
};

export default ({ community }: Props) => (
  <React.Fragment>
    <SidebarSection>
      <CommunityProfileCard community={community} />
    </SidebarSection>

    <ErrorBoundary>
      <SidebarSection>
        <ChannelsList id={community.id} communitySlug={community.slug} />
      </SidebarSection>
    </ErrorBoundary>

    <ErrorBoundary>
      <SidebarSection>
        <TeamMembersList
          community={community}
          id={community.id}
          first={100}
          filter={{ isModerator: true, isOwner: true }}
        />
      </SidebarSection>
    </ErrorBoundary>
  </React.Fragment>
);