diff options
| author | Jacky Zhao <[email protected]> | 2020-05-10 15:48:39 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-10 15:48:39 -0700 |
| commit | b6ed0911033e0b707159b9e64fd7f356df217c19 (patch) | |
| tree | 9b437efad909ea324f039c555d52d150d92a4583 /frontend/src/components/Options.js | |
| parent | Merge pull request #10 from jackyzha0/react (diff) | |
| parent | add password stuff + expiry stuff (diff) | |
| download | ctrl-v-b6ed0911033e0b707159b9e64fd7f356df217c19.tar.xz ctrl-v-b6ed0911033e0b707159b9e64fd7f356df217c19.zip | |
Merge pull request #11 from jackyzha0/pass_and_expiry
add password stuff + expiry stuff
Diffstat (limited to 'frontend/src/components/Options.js')
| -rw-r--r-- | frontend/src/components/Options.js | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/frontend/src/components/Options.js b/frontend/src/components/Options.js index 81f2046..21e932a 100644 --- a/frontend/src/components/Options.js +++ b/frontend/src/components/Options.js @@ -1,20 +1,27 @@ import React from 'react'; import styled from 'styled-components' -import { PassInput } from './Inputs' +import { PassInput, ExpiryInput } from './Inputs' -const Float = styled.div` - float: right; +const Flex = styled.div` + float: right; + display: flex; + flex-direction: row; + transform: translateY(0.2em); ` class OptionsContainer extends React.Component { render() { return ( - <Float> + <Flex> <PassInput value={this.props.pass} onChange={this.props.onChange} id="passwordInput" /> - </Float> + <ExpiryInput + value={this.props.expiry} + onChange={this.props.onChange} + id="expiryInput" /> + </Flex> ); } } |