1
0
mirror of https://github.com/yldio/copilot.git synced 2024-09-21 13:53:51 +03:00

styling positon of service toggle

This commit is contained in:
Alex Windett 2017-02-07 17:27:19 +00:00
parent e3131a3835
commit f2bdd00a32

View File

@ -1,13 +1,34 @@
const React = require('react');
const Toggle = require('@ui/components/toggle');
const fns = require('@ui/shared/functions');
const Styled = require('styled-components');
const {
remcalc,
} = fns;
const {
default: styled,
} = Styled;
const StyledWrapper = styled.div`
margin-top: ${remcalc(9)};
margin-bottom: ${remcalc(36)};
`;
const StyledSpan = styled.span`
margin-right: ${remcalc(6)};
`;
const ServiceToggle = () => {
return (
<div>
<span>View</span>
<StyledWrapper>
<StyledSpan>View</StyledSpan>
<Toggle />
</div>
</StyledWrapper>
);
};