Browse Source

Update status indicator

pull/1/head
Sacha Weatherstone 5 years ago
parent
commit
cffc38c0df
  1. 7
      src/components/menu/buttons/DeviceStatusDropdown.tsx

7
src/components/menu/buttons/DeviceStatusDropdown.tsx

@ -1,6 +1,6 @@
import React from 'react';
import { Types } from '@meshtastic/meshtasticjs';
import { SwitchVerticalIcon } from '@heroicons/react/outline';
import { useAppSelector } from '../../../hooks/redux';
import { Button } from '../../generic/Button';
@ -11,7 +11,8 @@ export const DeviceStatusDropdown = (): JSX.Element => {
return (
<Button>
<div
<SwitchVerticalIcon className={`h-6 w-6 ${!ready && 'animate-pulse'}`} />
{/* <div
className={`flex w-6 h-6 rounded-full animate-pulse shadow-md ${
deviceStatus <= Types.DeviceStatusEnum.DEVICE_DISCONNECTED
? 'bg-red-400 animate-pulse'
@ -22,7 +23,7 @@ export const DeviceStatusDropdown = (): JSX.Element => {
? 'bg-green-400'
: 'bg-gray-400'
}`}
></div>
></div> */}
</Button>
);
};

Loading…
Cancel
Save