react-icons/md#MdOutlinePeopleAlt TypeScript Examples

The following examples show how to use react-icons/md#MdOutlinePeopleAlt. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LandingPage.tsx    From dxvote with GNU Affero General Public License v3.0 5 votes vote down vote up
LandingPage: React.FC = () => {
  const { chainId } = useWeb3React();
  const chainName =
    getChains().find(chain => chain.id === chainId)?.name || null;

  const { data: allGuilds } = useGuildRegistry(
    configs[chainName].contracts.utils.guildRegistry
  );

  /*TODO:
    1. Members should be dynamic
    2. Amount of proposals should be dynamic
    3. Logo should be dynamic
    */
  return (
    <>
      <InputContainer>
        <Input
          icon={<AiOutlineSearch size={24} />}
          placeholder="Search Guild"
        />
        <StyledButton data-testid="create-guild-button">
          {' '}
          <StyledLink to={location => `${location.pathname}/createGuild`}>
            Create Guild
          </StyledLink>
        </StyledButton>
      </InputContainer>
      <CardContainer>
        {allGuilds
          ? allGuilds.map(guildAddress => (
              <GuildCard key={guildAddress} guildAddress={guildAddress}>
                <GuildCardHeader>
                  <MemberWrapper>
                    <MdOutlinePeopleAlt size={24} />
                    500
                  </MemberWrapper>
                  <ProposalsInformation proposals={'active'}>
                    4 Proposals
                  </ProposalsInformation>
                </GuildCardHeader>
                <GuildCardContent>
                  <DaoIcon src={dxDaoIcon} />
                  <Title guildAddress={guildAddress} />
                </GuildCardContent>
              </GuildCard>
            ))
          : null}
      </CardContainer>
    </>
  );
}