blob: 97d3127150fc84ee5a690f4e57ca90f1f9e3d164 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
import React from 'react';
import styled from 'styled-components'
import { Password, Expiry, Language } from './Inputs'
const Flex = styled.div`
float: right;
display: flex;
flex-direction: row;
transform: translateY(0.2em);
& > *:not(:first-child) {
margin-left: 2em;
}
@media (max-width: 850px) {
float: none !important;
}
`
const OptionsContainer = ({pass, lang, expiry, onPassChange, onLangChange, onExpiryChange}) => {
return (
<Flex>
<Password
value={pass}
onChange={onPassChange}
id="passwordInput" />
<Language
value={lang}
onChange={onLangChange}
id="langInput" />
<Expiry
value={expiry}
onChange={onExpiryChange}
id="expiryInput" />
</Flex>
);
}
export default OptionsContainer
|