diff options
author | Michael Foiani <sotech117@michaels-mbp-3.lan> | 2021-04-16 15:13:02 -0400 |
---|---|---|
committer | Michael Foiani <sotech117@michaels-mbp-3.lan> | 2021-04-16 15:13:02 -0400 |
commit | f00ac29dff86169e5dee9d816961cc13979f9a50 (patch) | |
tree | 024ac2af25a2f3119d0e1d13a8e31f099795a448 /maps-frontend/src/components/CoordSelector.js | |
parent | 505870f7a9f6f0ad8130cee3995d68b10010c24d (diff) |
Working on adapting maps frontend. Finished the time selector to change the time interval.
Diffstat (limited to 'maps-frontend/src/components/CoordSelector.js')
-rw-r--r-- | maps-frontend/src/components/CoordSelector.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/maps-frontend/src/components/CoordSelector.js b/maps-frontend/src/components/CoordSelector.js new file mode 100644 index 0000000..5d5e5f5 --- /dev/null +++ b/maps-frontend/src/components/CoordSelector.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.date} onChange={(e) => props.setStart(e.target.value)}/> + </div> + ); +} + +export default DateSelector;
\ No newline at end of file |