diff options
| author | Michael Foiani <sotech117@michaels-mbp-3.lan> | 2021-04-16 16:32:02 -0400 |
|---|---|---|
| committer | Michael Foiani <sotech117@michaels-mbp-3.lan> | 2021-04-16 16:32:02 -0400 |
| commit | 3182aec0fa9f1707435f92b0c0644c602125b0be (patch) | |
| tree | afd03fab0ec21cfed2de1a0e2116a241f98bb7a8 /maps-frontend/src/components/DateSelector.js | |
| parent | 579fa51b8b306fb201c799d33e633e58819463fb (diff) | |
Fixed bugs. Looking pretty good.
Diffstat (limited to 'maps-frontend/src/components/DateSelector.js')
| -rw-r--r-- | maps-frontend/src/components/DateSelector.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/maps-frontend/src/components/DateSelector.js b/maps-frontend/src/components/DateSelector.js new file mode 100644 index 0000000..5bb00fb --- /dev/null +++ b/maps-frontend/src/components/DateSelector.js @@ -0,0 +1,17 @@ +// CSS import +import '../css/Route.css'; +import '../css/CoordSelector.css'; + +/** + * The component that selects and displays a coordinate. + * @param {Object} props The props for the element. + */ +function DateSelector(props) { + return ( + <div className="Flex-coord"> + <input type="date" value={props.value} onChange={(e) => props.changedFunc(Date.parse(e.target.value))} onClick={() => props.clickedFunc()}/> + </div> + ); +} + +export default DateSelector;
\ No newline at end of file |
