-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
298 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"experimentalDecorators": true, | ||
"allowJs": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** @format */ | ||
|
||
const {override, addDecoratorsLegacy, disableEsLint} = require('customize-cra'); | ||
|
||
module.exports = override(addDecoratorsLegacy(), disableEsLint()); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
.app_logo { | ||
height: 30px; | ||
margin:0 8px; | ||
} | ||
|
||
.button_fixed { | ||
position: fixed; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,37 @@ | ||
/** @format */ | ||
|
||
import React, {Fragment} from 'react'; | ||
import React from 'react'; | ||
import {observer} from 'mobx-react'; | ||
|
||
// Styles | ||
import Col from 'react-bootstrap/lib/Col'; | ||
import Row from 'react-bootstrap/lib/Row'; | ||
import ListGroup from 'react-bootstrap/lib/ListGroup'; | ||
import Dropdown from 'react-bootstrap/lib/Dropdown'; | ||
import DropdownButton from 'react-bootstrap/lib/DropdownButton'; | ||
|
||
const CreatePlankList = ({items, listName, howLong}) => { | ||
const CreatePlankList = observer(({items, listName, onClick}) => { | ||
return ( | ||
<Fragment> | ||
<Row className="my-3"> | ||
<Col md="3" sm="12"> | ||
<h6>{listName}</h6> | ||
</Col> | ||
<Col md='6'sm="12"> | ||
<ListGroup> | ||
{items.map(item => ( | ||
<ListGroup.Item action className="py-2 px-3"> | ||
{item} | ||
</ListGroup.Item> | ||
))} | ||
<ListGroup.Item action variant="secondary" className="py-2 px-3"> | ||
More... | ||
</ListGroup.Item> | ||
</ListGroup> | ||
</Col> | ||
</Row> | ||
{howLong && ( | ||
<Row className="my-4"> | ||
<Col md="3">New Line</Col> | ||
<Col md="3"> | ||
<DropdownButton | ||
variant="light" | ||
id="dropdown-item-button" | ||
title="How long" | ||
<Row className="my-3"> | ||
<Col md="3" sm="12"> | ||
<h6>{listName}</h6> | ||
</Col> | ||
<Col md="6" sm="12"> | ||
<ListGroup> | ||
{items.map((item, idx) => ( | ||
<ListGroup.Item | ||
className="py-2 px-3" | ||
key={idx} | ||
onClick={() => onClick(item)} | ||
> | ||
<Dropdown.Item as="button">5 sec</Dropdown.Item> | ||
<Dropdown.Item as="button">10 sec</Dropdown.Item> | ||
<Dropdown.Item as="button">30 sec</Dropdown.Item> | ||
<Dropdown.Item as="button">1 min</Dropdown.Item> | ||
</DropdownButton> | ||
</Col> | ||
</Row> | ||
)} | ||
</Fragment> | ||
{item.name} | ||
</ListGroup.Item> | ||
))} | ||
<ListGroup.Item action variant="secondary" className="py-2 px-3"> | ||
More... | ||
</ListGroup.Item> | ||
</ListGroup> | ||
</Col> | ||
</Row> | ||
); | ||
}; | ||
}); | ||
|
||
export default CreatePlankList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** @format */ | ||
|
||
import React from 'react'; | ||
|
||
// Styles | ||
import Col from 'react-bootstrap/lib/Col'; | ||
import Row from 'react-bootstrap/lib/Row'; | ||
import Dropdown from 'react-bootstrap/lib/Dropdown'; | ||
import DropdownButton from 'react-bootstrap/lib/DropdownButton'; | ||
|
||
const DurationDropdown = () => { | ||
return ( | ||
<Row className="my-4"> | ||
<Col md="3">How long</Col> | ||
<Col md="3"> | ||
<DropdownButton | ||
variant="light" | ||
id="dropdown-item-button" | ||
title="select" | ||
> | ||
<Dropdown.Item as="button">5 sec</Dropdown.Item> | ||
<Dropdown.Item as="button">10 sec</Dropdown.Item> | ||
<Dropdown.Item as="button">30 sec</Dropdown.Item> | ||
<Dropdown.Item as="button">1 min</Dropdown.Item> | ||
</DropdownButton> | ||
</Col> | ||
</Row> | ||
); | ||
}; | ||
|
||
export default DurationDropdown; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.