react-icons/fi#FiRefreshCw TypeScript Examples

The following examples show how to use react-icons/fi#FiRefreshCw. 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: Info.tsx    From meshtastic-web with GNU General Public License v3.0 6 votes vote down vote up
Info = (): JSX.Element => {
  const hardwareInfo = useAppSelector(
    (state) => state.meshtastic.radio.hardware,
  );
  const node = useAppSelector((state) =>
    state.meshtastic.nodes.find(
      (node) => node.data.num === hardwareInfo.myNodeNum,
    ),
  );

  return (
    <div className="flex h-full flex-col gap-4 p-4 xl:flex-row">
      <Card
        title="Connected Node Details"
        actions={<IconButton icon={<FiRefreshCw />} />}
        className="xl:w-3/5"
      >
        <div className="m-auto flex flex-col gap-2">
          <Hashicon value={hardwareInfo.myNodeNum.toString()} size={180} />
          <div className="text-center text-lg font-medium dark:text-white">
            {node?.data.user?.longName || 'Unknown'}
          </div>
        </div>
        {/* <img
          src="https://docs.rakwireless.com/assets/images/wisblock/rak5005-o/overview/RAK5005-O_buy.png"
          className="-rotate-90"
        /> */}
      </Card>

      <Card
        title="Debug Information"
        className="flex-grow"
        actions={<CopyButton data={JSON.stringify(hardwareInfo)} />}
      >
        <JSONPretty className="overflow-y-auto" data={hardwareInfo} />
      </Card>
    </div>
  );
}