Skip to content
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

Merged
merged 5 commits into from
Sep 22, 2020

Conversation

KatvonRivia
Copy link
Member

@KatvonRivia KatvonRivia commented Sep 16, 2020

closes #639
closes #577

@@ -165,7 +168,7 @@ const DataViewer: FunctionComponent<Props> = ({
action: () => setIsMainActive(false)
})}

{showGlobeNavigation && <GlobeNavigation />}
{hideNavigation ? showGlobeNavigation : <GlobeNavigation />}
Copy link
Contributor

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';
Copy link
Contributor

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);
Copy link
Contributor

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 ;)

@KatvonRivia KatvonRivia merged commit e7f7bec into develop Sep 22, 2020
@KatvonRivia KatvonRivia deleted the feat/story-timeslider branch September 22, 2020 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stories: remove buttons from globe Story: Time Slider
2 participants