mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 11:34:26 +00:00
9cac0298a2
* Manage modal focus * Add isOpen prop to CustomNodeModal * Remove outline overrides * Update outline style for inputs * Fix modal focus management & Cleanup CustomNodeModal * Add aria-label on modal close button * Fix modal scroll to top * Add aria-live property for notifications * Add aria-busy to Spinner component * Fix border styles for generatewallet password inputs * Update token balances inputs * Remove multiple h1's & Update styles * Add alt text to all img elements * Update swap link from bity to shapeshift * Update aria-labels and alt text * Only show keystore password input when required * Revert "Only show keystore password input when required" This reverts commit 7ec5de52da0982cd3131f365b142f6915638d831. * address changes requested
33 lines
700 B
TypeScript
33 lines
700 B
TypeScript
import React from 'react';
|
|
import wifiOn from 'assets/images/wifi-on.svg';
|
|
import wifiOff from 'assets/images/wifi-off.svg';
|
|
|
|
type sizeType = 'small' | 'medium' | 'large';
|
|
|
|
interface OfflineSymbolProps {
|
|
offline: boolean;
|
|
size?: sizeType;
|
|
}
|
|
|
|
const OfflineSymbol = ({ offline, size }: OfflineSymbolProps) => {
|
|
let width = 30;
|
|
let height = 12;
|
|
|
|
switch (size) {
|
|
case 'medium':
|
|
width = width * 3;
|
|
height = height * 3;
|
|
break;
|
|
case 'large':
|
|
width = width * 4;
|
|
height = height * 4;
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
return <img src={offline ? wifiOff : wifiOn} alt="wifi status" width={width} height={height} />;
|
|
};
|
|
|
|
export default OfflineSymbol;
|