mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-17 05:26:36 +00:00
* Initial work at splitting out generate into two flows. * Finish mnemonic flow. * Convert keystore to state-based component. Remove all redux generate stuff. Remove generate help section. Fix styles. * Add back button, switch to routing instead of state for generate pages. * PR feedback. * Alertify warning at generate. Linkify alternatives. Fix some alert link styles.
44 lines
884 B
TypeScript
44 lines
884 B
TypeScript
import React from 'react';
|
|
|
|
interface AAttributes {
|
|
charset?: string;
|
|
className?: string;
|
|
coords?: string;
|
|
download?: string;
|
|
href: string;
|
|
hreflang?: string;
|
|
media?: string;
|
|
name?: string;
|
|
rel?:
|
|
| 'alternate'
|
|
| 'author'
|
|
| 'bookmark'
|
|
| 'external'
|
|
| 'help'
|
|
| 'license'
|
|
| 'next'
|
|
| 'nofollow'
|
|
| 'noreferrer'
|
|
| 'noopener'
|
|
| 'prev'
|
|
| 'search'
|
|
| 'tag';
|
|
rev?: string;
|
|
shape?: 'default' | 'rect' | 'circle' | 'poly';
|
|
target?: '_blank' | '_parent' | '_self' | '_top';
|
|
type?: string;
|
|
}
|
|
|
|
interface NewTabLinkProps extends AAttributes {
|
|
content?: React.ReactElement<any> | string;
|
|
children?: React.ReactElement<any> | string;
|
|
}
|
|
|
|
const NewTabLink = ({ content, children, ...rest }: NewTabLinkProps) => (
|
|
<a target="_blank" rel="noopener" {...rest}>
|
|
{content || children}
|
|
</a>
|
|
);
|
|
|
|
export default NewTabLink;
|