-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6 -select time period on map- Delnia #35
Conversation
add some data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this despite the lack of designs!
import React, { useState, useEffect } from "react"; | ||
import DualRangeSlider from "./DualRangeSlider"; | ||
|
||
const RhythmsWithSlider = ({ rhythms }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good illustration of how the component will operate using state. When it's integrated, we should look to move this state into the main page.
import DualRangeSlider from "./DualRangeSlider"; | ||
|
||
const RhythmsWithSlider = ({ rhythms }) => { | ||
const [selectedRange, setSelectedRange] = useState([1400, 2023]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For long-term projects, it's better to use something like Date.now() and get the year rather than hard-coding, but good illustration of the max/min
Naming Rules
Name your PR like this: ISSUENUMBER-TITLE-YOURNAME
Description
The functionality (for now) is selecting a time period, by decade, within 1400 to present day with a slider.
#6
Make sure you include the issue number with a hash sign # so Github can link this PR to the right issue, like this:
Fixes
Checklist: