summaryrefslogtreecommitdiff
path: root/frontend/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components')
-rw-r--r--frontend/src/components/errors/errorToastContainer.js7
-rw-r--r--frontend/src/components/modals/username.js25
2 files changed, 4 insertions, 28 deletions
diff --git a/frontend/src/components/errors/errorToastContainer.js b/frontend/src/components/errors/errorToastContainer.js
index 073b6038..65711073 100644
--- a/frontend/src/components/errors/errorToastContainer.js
+++ b/frontend/src/components/errors/errorToastContainer.js
@@ -3,12 +3,7 @@ import ReduxToastr from 'react-redux-toastr';
import './react-redux-toastr.min.css';
const ErrorToastContainer = props => (
- <ReduxToastr
- timeOut={4000}
- preventDuplicates
- position="bottom-left"
- progressBar
- />
+ <ReduxToastr timeOut={4000} preventDuplicates position="bottom-left" progressBar />
);
export default ErrorToastContainer;
diff --git a/frontend/src/components/modals/username.js b/frontend/src/components/modals/username.js
index bec890b2..c00262a7 100644
--- a/frontend/src/components/modals/username.js
+++ b/frontend/src/components/modals/username.js
@@ -1,14 +1,5 @@
import React from 'react';
-import {
- Overlay,
- Panel,
- PanelHeader,
- PanelFooter,
- Button,
- Input,
- Close,
- Space,
-} from 'rebass';
+import { Overlay, Panel, PanelHeader, PanelFooter, Button, Input, Close, Space } from 'rebass';
const Modal = ({ modalOpen, toggleModal }) => (
<Overlay open={modalOpen} onDismiss={toggleModal('usernameModal')}>
@@ -18,20 +9,10 @@ const Modal = ({ modalOpen, toggleModal }) => (
<Space auto />
<Close onClick={toggleModal('usernameModal')} />
</PanelHeader>
- <Input
- label="Username"
- name="username"
- placeholder="Cesar92"
- rounded
- type="text"
- />
+ <Input label="Username" name="username" placeholder="Cesar92" rounded type="text" />
<PanelFooter>
<Space auto />
- <Button
- theme="success"
- onClick={toggleModal('usernameModal')}
- children="Ok"
- />
+ <Button theme="success" onClick={toggleModal('usernameModal')} children="Ok" />
</PanelFooter>
</Panel>
</Overlay>
bgstack15