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 {colors, styled} from 'flipper';
|
||||||
import type {Element} from 'react';
|
import {BackgroundColorProperty, HeightProperty} from 'csstype';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
statusColor: string,
|
statusColor: BackgroundColorProperty;
|
||||||
diameter?: number | string,
|
diameter?: HeightProperty<number>;
|
||||||
title?: string,
|
title?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
const StatusIndicator: Props => Element<'div'> = styled('div')(
|
const StatusIndicator = styled('div')(
|
||||||
({statusColor, diameter = 10, title}) => ({
|
({statusColor, diameter = 10, title}: Props) => ({
|
||||||
alignSelf: 'center',
|
alignSelf: 'center',
|
||||||
backgroundColor: statusColor,
|
backgroundColor: statusColor,
|
||||||
border: `1px solid ${colors.blackAlpha30}`,
|
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 Tooltip} from './components/Tooltip.js';
|
||||||
export {default as TooltipProvider} from './components/TooltipProvider.js';
|
export {default as TooltipProvider} from './components/TooltipProvider.js';
|
||||||
export {default as ResizeSensor} from './components/ResizeSensor.tsx';
|
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
|
// typography
|
||||||
export {default as HorizontalRule} from './components/HorizontalRule.js';
|
export {default as HorizontalRule} from './components/HorizontalRule.js';
|
||||||
|
|||||||
Reference in New Issue
Block a user