diff options
author | Victor Chabbert <chabbertvi@eisti.eu> | 2017-05-20 15:14:13 +0200 |
---|---|---|
committer | Victor Chabbert <chabbertvi@eisti.eu> | 2017-05-20 15:14:13 +0200 |
commit | 240246ea132cc736c6eaa70ed79f2ec78d1d4636 (patch) | |
tree | a45a5c81de9f650fcd18190d90049f67c0f63b97 /frontend/src/components/modals | |
parent | Upgrade react-scripts to 1.0.1 (diff) | |
download | seven-wonders-240246ea132cc736c6eaa70ed79f2ec78d1d4636.tar.gz seven-wonders-240246ea132cc736c6eaa70ed79f2ec78d1d4636.tar.bz2 seven-wonders-240246ea132cc736c6eaa70ed79f2ec78d1d4636.zip |
Add prettier and format js files
Diffstat (limited to 'frontend/src/components/modals')
-rw-r--r-- | frontend/src/components/modals/username.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/frontend/src/components/modals/username.js b/frontend/src/components/modals/username.js index 61b52114..826bce85 100644 --- a/frontend/src/components/modals/username.js +++ b/frontend/src/components/modals/username.js @@ -1,4 +1,4 @@ -import React from 'react' +import React from "react"; import { Overlay, Panel, @@ -8,15 +8,15 @@ import { Input, Close, Space -} from 'rebass' +} from "rebass"; const Modal = ({ modalOpen, toggleModal }) => ( - <Overlay open={modalOpen} onDismiss={toggleModal('usernameModal')}> + <Overlay open={modalOpen} onDismiss={toggleModal("usernameModal")}> <Panel theme="info"> <PanelHeader> What's your username ? <Space auto /> - <Close onClick={toggleModal('usernameModal')} /> + <Close onClick={toggleModal("usernameModal")} /> </PanelHeader> <Input label="Username" @@ -29,12 +29,12 @@ const Modal = ({ modalOpen, toggleModal }) => ( <Space auto /> <Button theme="success" - onClick={toggleModal('usernameModal')} + onClick={toggleModal("usernameModal")} children="Ok" /> </PanelFooter> </Panel> </Overlay> -) +); -export default Modal +export default Modal; |