1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-13 06:40:06 +02:00

Fix svg imports again

This commit is contained in:
JUDIT GRESKOVITS 2017-05-23 15:41:12 +01:00 committed by Sérgio Ramos
parent 80a417d33f
commit ab93794724
3 changed files with 43 additions and 0 deletions

View File

@ -1,2 +1,3 @@
export { default as EmptyServices } from './empty';
export { default as ServiceListItem } from './list-item';
export { default as ServicesTooltip } from './tooltip';

View File

@ -0,0 +1,41 @@
import React from 'react';
import Tooltip, { TooltipButton, TooltipDivider } from '@ui/components/tooltip';
const ServicesTooltip = ({
show,
position,
data,
...rest
}) => {
if(!show) {
return null;
}
return (
<Tooltip {...position} {...rest}>
<li>
<TooltipButton>Scale</TooltipButton>
</li>
<li>
<TooltipButton>Start</TooltipButton>
</li>
<li>
<TooltipButton>Restart</TooltipButton>
</li>
<TooltipDivider />
<li>
<TooltipButton>Stop</TooltipButton>
</li>
<li>
<TooltipButton>Delete</TooltipButton>
</li>
</Tooltip>
);
};
ServicesTooltip.propTypes = {
data: React.PropTypes.object,
position: React.PropTypes.object,
show: React.PropTypes.bool
};
export default ServicesTooltip;

View File

@ -9,6 +9,7 @@ import { processServices } from '@root/state/selectors';
import { LayoutContainer } from '@components/layout';
import { Loader, ErrorMessage } from '@components/messaging';
import { ServicesTooltip } from '@components/services';
import { colors } from '@ui/shared/constants';
import { unitcalc } from '@ui/shared/functions';