mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 02:55:41 +00:00
26619e28cc
* working version of test custom rule config * setting no imports to false so tests will pass * adding anchor blank noopener rule, rule currently off to allow tests to pass * removing copied code from tslint-microsoft-contrib * adding tslint-microsoft-contrib to dev deps * extending tslint for external http rule * locking tslint-microsoft-contrib version and turning on target blank noopener rule * final fixes for pull #663 * add noopener noreferrer as needed * fixing false positives for a tags without href * really fix linting errors * fix imports * remove accidently(?) added LedgerNano duplicate file
21 lines
403 B
TypeScript
21 lines
403 B
TypeScript
import React from 'react';
|
|
import icon from 'assets/images/icon-help-3.svg';
|
|
import './Help.scss';
|
|
|
|
type Size = 'x1' | 'x2' | 'x3';
|
|
|
|
interface Props {
|
|
link: string;
|
|
size?: Size;
|
|
}
|
|
|
|
const Help = ({ size = 'x1', link }: Props) => {
|
|
return (
|
|
<a href={link} className={`Help Help-${size}`} target="_blank" rel="noopener noreferrer">
|
|
<img src={icon} />
|
|
</a>
|
|
);
|
|
};
|
|
|
|
export default Help;
|