parent
59ca154fd1
commit
ffe6809390
@ -24,7 +24,7 @@ const Services = (props) => {
|
|||||||
|
|
||||||
// TODO: Move into "components" and fix absolute
|
// TODO: Move into "components" and fix absolute
|
||||||
// positioning on responsive screens
|
// positioning on responsive screens
|
||||||
const instances = (instances = 1) => {
|
const instances = (instances = 0) => {
|
||||||
|
|
||||||
const StyledButton = Styled(Button)`
|
const StyledButton = Styled(Button)`
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -32,7 +32,7 @@ const Services = (props) => {
|
|||||||
right: 193px;
|
right: 193px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
if ( instances.length <= 0 ) return;
|
if ( instances.length <= 0 || instances <= 0 ) return;
|
||||||
return (
|
return (
|
||||||
<StyledButton tertiary>
|
<StyledButton tertiary>
|
||||||
You have 5 instances
|
You have 5 instances
|
||||||
|
@ -55,7 +55,7 @@ class Services extends React.Component {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const instances = 5;
|
const instances = null;
|
||||||
|
|
||||||
const serviceList = services.map((service) => (
|
const serviceList = services.map((service) => (
|
||||||
<ServiceItem
|
<ServiceItem
|
||||||
|
Loading…
Reference in New Issue
Block a user