hiding unmanaged instances

fixes #371
This commit is contained in:
Alex Windett 2017-03-17 11:04:10 +00:00 committed by Judit Greskovits
parent 59ca154fd1
commit ffe6809390
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ const Services = (props) => {
// TODO: Move into "components" and fix absolute
// positioning on responsive screens
const instances = (instances = 1) => {
const instances = (instances = 0) => {
const StyledButton = Styled(Button)`
position: absolute;
@ -32,7 +32,7 @@ const Services = (props) => {
right: 193px;
`;
if ( instances.length <= 0 ) return;
if ( instances.length <= 0 || instances <= 0 ) return;
return (
<StyledButton tertiary>
You have 5 instances

View File

@ -55,7 +55,7 @@ class Services extends React.Component {
});
};
const instances = 5;
const instances = null;
const serviceList = services.map((service) => (
<ServiceItem