react-feather#Sunrise TypeScript Examples

The following examples show how to use react-feather#Sunrise. 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: index.tsx    From cheeseswap-interface with GNU General Public License v3.0 5 votes vote down vote up
export default function Menu() {
  const node = useRef<HTMLDivElement>()
  const [open, toggle] = useToggle(false)

  useOnClickOutside(node, open ? toggle : undefined)

  return (
    // https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30451
    <StyledMenu ref={node as any}>
      <StyledMenuButton onClick={toggle}>
        <StyledMenuIcon />
      </StyledMenuButton>
      {open && (
        <MenuFlyout>
          <MenuItem id="link" href="https://ogee.exchange/#/swap">
            HECO
          </MenuItem>
          <MenuItem id="link" href="https://qsr.cheeseswap.app">
            Quasar
           </MenuItem>
          <MenuItem id="link" href="https://cheesemaker.farm/">
            <Sunrise size={14} />
            Farm
          </MenuItem>
          <MenuItem id="link" href="https://info.cheeseswap.app/">
            <PieChart size={14} />
            Chart
          </MenuItem>
          <MenuItem id="link" href="https://t.me/cheesemakerfarm">
            <MessageCircle size={14} />
            Telegram
          </MenuItem>
          <MenuItem id="link" href={CODE_LINK}>
            <Code size={14} />
            Code
          </MenuItem>
        </MenuFlyout>
      )}
    </StyledMenu>
  )
}