summaryrefslogtreecommitdiff
path: root/frontend/src/components/modals/username.js
blob: 19b7eeb0f698bc0a740be6cd36a8b6475ecc31bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React from 'react';
import { Button, Close, Input, Overlay, Panel, PanelFooter, PanelHeader, Space } from 'rebass';

const Modal = ({ modalOpen, toggleModal }) => (
  <Overlay open={modalOpen} onDismiss={toggleModal('usernameModal')}>
    <Panel theme="info">
      <PanelHeader>
        What's your username ?
        <Space auto />
        <Close onClick={toggleModal('usernameModal')} />
      </PanelHeader>
      <Input label="Username" name="username" placeholder="Cesar92" rounded type="text" />
      <PanelFooter>
        <Space auto />
        <Button theme="success" onClick={toggleModal('usernameModal')} children="Ok" />
      </PanelFooter>
    </Panel>
  </Overlay>
);

export default Modal;
bgstack15