Link
Summary: _typescript_ Reviewed By: bnelo12 Differential Revision: D16830544 fbshipit-source-id: 868518b9601d1772af8363b940b72cb3ab2f6cc8
This commit is contained in:
committed by
Facebook Github Bot
parent
e80385169a
commit
4c6aec42d8
@@ -5,10 +5,11 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import styled from '../styled/index.js';
|
||||
import {colors} from './colors.tsx';
|
||||
import styled from 'react-emotion';
|
||||
import {colors} from './colors';
|
||||
import {Component} from 'react';
|
||||
import {shell} from 'electron';
|
||||
import React from 'react';
|
||||
|
||||
const StyledLink = styled('span')({
|
||||
color: colors.highlight,
|
||||
@@ -19,8 +20,8 @@ const StyledLink = styled('span')({
|
||||
});
|
||||
|
||||
export default class Link extends Component<{
|
||||
href: string,
|
||||
children?: React$Node,
|
||||
href: string;
|
||||
children?: React.ReactNode;
|
||||
}> {
|
||||
onClick = () => {
|
||||
shell.openExternal(this.props.href);
|
||||
@@ -4,7 +4,7 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* @format
|
||||
*/
|
||||
import Link from '../Link';
|
||||
import Link from '../Link.tsx';
|
||||
import type {DataInspectorSetValue} from './DataInspector.js';
|
||||
import {PureComponent} from 'react';
|
||||
import styled from '../../styled/index.js';
|
||||
|
||||
Reference in New Issue
Block a user