diff options
| author | jackyzha0 <[email protected]> | 2020-05-14 23:23:12 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-14 23:23:12 -0700 |
| commit | e3f871044c39ae05d5c84b5157a1f12579811303 (patch) | |
| tree | 3b4aea8342c23b296ed89012c94854a8150c2207 /frontend/src/components/PasteInfo.js | |
| parent | rm bad deps (diff) | |
| download | ctrl-v-e3f871044c39ae05d5c84b5157a1f12579811303.tar.xz ctrl-v-e3f871044c39ae05d5c84b5157a1f12579811303.zip | |
working code render
Diffstat (limited to 'frontend/src/components/PasteInfo.js')
| -rw-r--r-- | frontend/src/components/PasteInfo.js | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/frontend/src/components/PasteInfo.js b/frontend/src/components/PasteInfo.js index b27cd53..dabbb94 100644 --- a/frontend/src/components/PasteInfo.js +++ b/frontend/src/components/PasteInfo.js @@ -1,27 +1,39 @@ import React from 'react'; import styled from 'styled-components' +import { LangInput, ThemeInput } from './Inputs' const Bold = styled.span` font-weight: 700 ` -const FloatLeft = styled.p` - float: left; +const StyledDiv = styled.div` + margin: 2em 0; display: inline-block; - margin: 0; ` -const FloatRight = styled.p` + +const Flex = styled.div` float: right; - display: inline-block; - margin: 0; - margin-right: -1em; + display: flex; + flex-direction: row; + transform: translateY(0.2em); ` const PasteInfo = (props) => { return ( <div> - <FloatLeft><Bold>mode: </Bold>{props.mode}</FloatLeft> - <FloatRight><Bold>expires: </Bold>{props.expiry}</FloatRight> + <Flex> + <LangInput + value={props.lang} + onChange={props.onChange} + id="langInput" /> + <ThemeInput + value={props.theme} + onChange={props.onChange} + id="themeInput" /> + </Flex> + <StyledDiv> + <Bold>expires: </Bold>{props.expiry} + </StyledDiv> </div> ); } |