StatusIndicator
Summary: _typescript_ Reviewed By: priteshrnandgaonkar Differential Revision: D16830064 fbshipit-source-id: 947a7af91e4bdffedc321db369d79da4584d64f7
This commit is contained in:
committed by
Facebook Github Bot
parent
fae45bc5ac
commit
00c2a4dd29
@@ -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}`,
|
||||
@@ -133,7 +133,7 @@ export {default as ModalOverlay} from './components/ModalOverlay.tsx';
|
||||
export {default as Tooltip} from './components/Tooltip.js';
|
||||
export {default as TooltipProvider} from './components/TooltipProvider.js';
|
||||
export {default as ResizeSensor} from './components/ResizeSensor.tsx';
|
||||
export {default as StatusIndicator} from './components/StatusIndicator.js';
|
||||
export {default as StatusIndicator} from './components/StatusIndicator.tsx';
|
||||
|
||||
// typography
|
||||
export {default as HorizontalRule} from './components/HorizontalRule.js';
|
||||
|
||||
Reference in New Issue
Block a user