diff options
| author | Ryan Mehri <[email protected]> | 2020-05-15 10:49:22 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-15 10:49:22 -0600 |
| commit | d0c8ea3198794091d9e71e1513c3f4f3a4851c92 (patch) | |
| tree | 24cd91db97508a5d1a0c8051c32719d3dfc60bba /frontend/src/components/PasteInfo.js | |
| parent | Merge pull request #22 from jackyzha0/paste-modal (diff) | |
| parent | fix typo (diff) | |
| download | ctrl-v-d0c8ea3198794091d9e71e1513c3f4f3a4851c92.tar.xz ctrl-v-d0c8ea3198794091d9e71e1513c3f4f3a4851c92.zip | |
Merge pull request #23 from jackyzha0/code-render
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> ); } |