@chakra-ui/icons#SmallAddIcon TypeScript Examples

The following examples show how to use @chakra-ui/icons#SmallAddIcon. 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: FuseTabBar.tsx    From rari-dApp with GNU Affero General Public License v3.0 6 votes vote down vote up
NewPoolButton = () => {
  const isMobile = useIsSmallScreen();
  const { t } = useTranslation();

  const location = useLocation();

  return (
    <DashboardBox
      mt={isMobile ? 4 : 0}
      ml={isMobile ? 0 : "auto"}
      height="35px"
      {...("/fuse/new-pool" ===
      location.pathname.replace(/\/+$/, "") + window.location.search
        ? activeStyle
        : noop)}
    >
      <Link
        /* @ts-ignore */
        as={RouterLink}
        to={`/fuse/new-pool`}
        className="no-underline"
      >
        <Center expand pl={2} pr={3} fontWeight="bold">
          <SmallAddIcon mr={1} /> {t("New Pool")}
        </Center>
      </Link>
    </DashboardBox>
  );
}