StatusIndicator

Summary: _typescript_

Reviewed By: priteshrnandgaonkar

Differential Revision: D16830064

fbshipit-source-id: 947a7af91e4bdffedc321db369d79da4584d64f7
This commit is contained in:
Daniel Büchele
2019-08-20 03:18:32 -07:00
committed by Facebook Github Bot
parent fae45bc5ac
commit 00c2a4dd29
2 changed files with 7 additions and 7 deletions

View File

@@ -6,16 +6,16 @@
*/
import {colors, styled} from 'flipper';
import type {Element} from 'react';
import {BackgroundColorProperty, HeightProperty} from 'csstype';
type Props = {
statusColor: string,
diameter?: number | string,
title?: string,
statusColor: BackgroundColorProperty;
diameter?: HeightProperty<number>;
title?: string;
};
const StatusIndicator: Props => Element<'div'> = styled('div')(
({statusColor, diameter = 10, title}) => ({
const StatusIndicator = styled('div')(
({statusColor, diameter = 10, title}: Props) => ({
alignSelf: 'center',
backgroundColor: statusColor,
border: `1px solid ${colors.blackAlpha30}`,