mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-14 04:54:33 +00:00
ae2ac4f2c6
* Remove beta agreement, move modals to Root, and initial work on welcome modal. * Local storage detection for welcome modal * Remove announcement from header. Allow tooltips to point in non-top directions. * Show modal fade at bottom on non-footer modals * Update README * Update all links back to old mycrypto to classic.mycrypto, add footer link too. * Localize welcome modal * Remove release candidate version text, change to legacy.mycrypto instead of classic.mycrypto. * update banner; add hackerone link
24 lines
553 B
TypeScript
24 lines
553 B
TypeScript
import React from 'react';
|
|
import classnames from 'classnames';
|
|
import './Tooltip.scss';
|
|
|
|
interface Props {
|
|
children: React.ReactElement<string> | string;
|
|
size?: 'sm' | 'md' | 'lg';
|
|
direction?: 'top' | 'bottom' | 'left' | 'right';
|
|
}
|
|
|
|
const Tooltip: React.SFC<Props> = ({ size, direction, children }) => (
|
|
<div
|
|
className={classnames({
|
|
Tooltip: true,
|
|
[`is-size-${size}`]: !!size,
|
|
[`is-direction-${direction}`]: !!direction
|
|
})}
|
|
>
|
|
<span className="Tooltip-text">{children}</span>
|
|
</div>
|
|
);
|
|
|
|
export default Tooltip;
|