@fortawesome/free-solid-svg-icons#faUsers TypeScript Examples
The following examples show how to use
@fortawesome/free-solid-svg-icons#faUsers.
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: navigation.component.ts From dating-client with MIT License | 6 votes |
menuItems: MenuItem[] = [
{
title: 'Members',
link: '/members/all',
icon: faUsers,
},
{
title: 'Matches',
link: '/matches',
icon: faStar,
},
{
title: 'Messages',
link: '/messages',
icon: faComments,
}
];
Example #2
Source File: side-navbar.component.tsx From MyWay-client with MIT License | 6 votes |
export default function SideNavbar() {
return (
<nav className="bg-gray-100 my-5">
<ul>
<Link href="/" passHref>
<li className="flex items-center justify-center cursor-pointer">
<a className="text-2xl flex items-center justify-center">
<FontAwesomeIcon icon={faPaw} className="inline w-6 mx-2" />{" "}
<span style={{ fontFamily: "Pacifico" }}>MyWay</span>
</a>
</li>
</Link>
<Link href="/dogs" passHref>
<li className="rounded cursor-pointer hover:bg-gray-50 h-8 flex items-center justify-center">
<FontAwesomeIcon icon={faDog} className="w-5 mx-2" />
הכלבים שלי
</li>
</Link>
<Link href="/customers" passHref>
<li className="rounded cursor-pointer hover:bg-gray-50 h-8 flex items-center justify-center">
<FontAwesomeIcon icon={faUsers} className="w-5 mx-2" />
הלקוחות שלי
</li>
</Link>
</ul>
</nav>
);
}
Example #3
Source File: fa-library.ts From eth2stats-dashboard with MIT License | 5 votes |
library.add(faBell, faChevronDown, faTimes, faArrowRight, faCheck, faPlusCircle, faExclamationCircle, faHeart, faCodeBranch, faMap, faList, faCircle, faDotCircle, faCheckCircle, faNetworkWired, faUsers, faCube, faSortUp, faSortDown, faEllipsisV, faSync, faMicrochip, faCheckDouble, faLaptopCode);
Example #4
Source File: index.tsx From nouns-monorepo with GNU General Public License v3.0 | 4 votes |
NavBar = () => {
const activeAccount = useAppSelector(state => state.account.activeAccount);
const stateBgColor = useAppSelector(state => state.application.stateBackgroundColor);
const isCool = useAppSelector(state => state.application.isCoolBackground);
const history = useHistory();
const ethBalance = useEtherBalance(config.addresses.nounsDaoExecutor);
const lidoBalanceAsETH = useLidoBalance();
const treasuryBalance = ethBalance && lidoBalanceAsETH && ethBalance.add(lidoBalanceAsETH);
const daoEtherscanLink = buildEtherscanHoldingsLink(config.addresses.nounsDaoExecutor);
const [isNavExpanded, setIsNavExpanded] = useState(false);
const useStateBg =
history.location.pathname === '/' ||
history.location.pathname.includes('/noun/') ||
history.location.pathname.includes('/auction/');
const nonWalletButtonStyle = !useStateBg
? NavBarButtonStyle.WHITE_INFO
: isCool
? NavBarButtonStyle.COOL_INFO
: NavBarButtonStyle.WARM_INFO;
const closeNav = () => setIsNavExpanded(false);
return (
<>
<Navbar
expand="xl"
style={{ backgroundColor: `${useStateBg ? stateBgColor : 'white'}` }}
className={classes.navBarCustom}
expanded={isNavExpanded}
>
<Container style={{ maxWidth: 'unset' }}>
<div className={classes.brandAndTreasuryWrapper}>
<Navbar.Brand as={Link} to="/" className={classes.navBarBrand}>
<img src={logo} className={classes.navBarLogo} alt="Nouns DAO logo" />
</Navbar.Brand>
{Number(CHAIN_ID) !== 1 && (
<Nav.Item>
<img className={classes.testnetImg} src={testnetNoun} alt="testnet noun" />
TESTNET
</Nav.Item>
)}
<Nav.Item>
{treasuryBalance && (
<Nav.Link
href={daoEtherscanLink}
className={classes.nounsNavLink}
target="_blank"
rel="noreferrer"
>
<NavBarTreasury
treasuryBalance={Number(utils.formatEther(treasuryBalance)).toFixed(0)}
treasuryStyle={nonWalletButtonStyle}
/>
</Nav.Link>
)}
</Nav.Item>
</div>
<Navbar.Toggle className={classes.navBarToggle} aria-controls="basic-navbar-nav" onClick={() => setIsNavExpanded(!isNavExpanded)} />
<Navbar.Collapse className="justify-content-end">
<Nav.Link as={Link} to="/vote" className={classes.nounsNavLink} onClick={closeNav} >
<NavBarButton
buttonText={<Trans>DAO</Trans>}
buttonIcon={<FontAwesomeIcon icon={faUsers} />}
buttonStyle={nonWalletButtonStyle}
/>
</Nav.Link>
<Nav.Link
href={externalURL(ExternalURL.notion)}
className={classes.nounsNavLink}
target="_blank"
rel="noreferrer"
onClick={closeNav}
>
<NavBarButton
buttonText={<Trans>Docs</Trans>}
buttonIcon={<FontAwesomeIcon icon={faBookOpen} />}
buttonStyle={nonWalletButtonStyle}
/>
</Nav.Link>
<Nav.Link
href={externalURL(ExternalURL.discourse)}
className={classes.nounsNavLink}
target="_blank"
rel="noreferrer"
onClick={closeNav}
>
<NavBarButton
buttonText={<Trans>Discourse</Trans>}
buttonIcon={<FontAwesomeIcon icon={faComments} />}
buttonStyle={nonWalletButtonStyle}
/>
</Nav.Link>
<Nav.Link as={Link} to="/playground" className={classes.nounsNavLink} onClick={closeNav}>
<NavBarButton
buttonText={<Trans>Playground</Trans>}
buttonIcon={<FontAwesomeIcon icon={faPlay} />}
buttonStyle={nonWalletButtonStyle}
/>
</Nav.Link>
<NavLocaleSwitcher buttonStyle={nonWalletButtonStyle} />
<NavWallet address={activeAccount || '0'} buttonStyle={nonWalletButtonStyle} />{' '}
</Navbar.Collapse>
</Container>
</Navbar>
</>
);
}