-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat(story-timeslider): add timeslider to stories #640
Conversation
@@ -165,7 +168,7 @@ const DataViewer: FunctionComponent<Props> = ({ | |||
action: () => setIsMainActive(false) | |||
})} | |||
|
|||
{showGlobeNavigation && <GlobeNavigation />} | |||
{hideNavigation ? showGlobeNavigation : <GlobeNavigation />} |
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 super confusing! showGlobeNavigation
is a boolean. Why do you want to render it here? Is it always false? when hideNavigation
is true? Then you could just say hideNavigation ? false : <GlobeNavigation />
or even hideNavigation || <GlobeNavigation />
.
Not really sure if I understand the logic here :)
@@ -1,5 +1,6 @@ | |||
import React, {FunctionComponent, useEffect} from 'react'; | |||
import {useDispatch} from 'react-redux'; | |||
// import cx from 'classnames'; |
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.
Please remove
@@ -72,13 +74,21 @@ const Story: FunctionComponent = () => { | |||
} else if (slide.type === SlideType.Video && slide.videoId) { | |||
return <StoryVideo videoId={slide.videoId} />; | |||
} | |||
// const timesliderClasses = cx(slide.layerDescription && styles.spacedSlider); |
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.
Please remove and review your own PRs before submitting ;)
closes #639
closes #577