Basic Doctor UI
Summary: - Basic Doctor UI showing issues with installation - Run healthchecks in background on startup and show warning message if something is wrong Reviewed By: jknoxville Differential Revision: D18502599 fbshipit-source-id: 194939a080ba7412ed3293d95c533bfad7031d3b
This commit is contained in:
committed by
Facebook Github Bot
parent
c1de6f4276
commit
ddb135ac39
@@ -93,6 +93,7 @@ export default class Glyph extends React.PureComponent<{
|
||||
className?: string;
|
||||
color?: string;
|
||||
style?: React.CSSProperties;
|
||||
title?: string;
|
||||
}> {
|
||||
render() {
|
||||
const {name, size = 16, variant, color, className, style} = this.props;
|
||||
|
||||
@@ -15,6 +15,7 @@ import {
|
||||
FontFamilyProperty,
|
||||
WhiteSpaceProperty,
|
||||
WordWrapProperty,
|
||||
CursorProperty,
|
||||
} from 'csstype';
|
||||
|
||||
/**
|
||||
@@ -25,6 +26,7 @@ const Text = styled('span')(
|
||||
color?: ColorProperty;
|
||||
bold?: boolean;
|
||||
italic?: boolean;
|
||||
underline?: boolean;
|
||||
align?: TextAlignProperty;
|
||||
size?: FontSizeProperty<number>;
|
||||
code?: boolean;
|
||||
@@ -32,13 +34,16 @@ const Text = styled('span')(
|
||||
selectable?: boolean;
|
||||
wordWrap?: WordWrapProperty;
|
||||
whiteSpace?: WhiteSpaceProperty;
|
||||
cursor?: CursorProperty;
|
||||
}) => ({
|
||||
color: props.color ? props.color : 'inherit',
|
||||
cursor: props.cursor ? props.cursor : 'auto',
|
||||
display: 'inline',
|
||||
fontWeight: props.bold ? 'bold' : 'inherit',
|
||||
fontStyle: props.italic ? 'italic' : 'normal',
|
||||
textAlign: props.align || 'left',
|
||||
fontSize: props.size == null && props.code ? 12 : props.size,
|
||||
textDecoration: props.underline ? 'underline' : 'initial',
|
||||
fontFamily: props.code
|
||||
? 'SF Mono, Monaco, Andale Mono, monospace'
|
||||
: props.family,
|
||||
|
||||
Reference in New Issue
Block a user