blob: 3c55a20e406fdcc43057850df6860107aba524ec (
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
40
41
|
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);
@media (min-width: 650px) {
& > *:not(:first-child) {
margin-left: 2em;
}
}
@media (max-width: 650px) {
position: relative;
float: none !important;
flex-direction: column;
}
`;
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;
|