Skip to content

Commit

Permalink
Merge pull request #424 from greenpeace/planet-5640
Browse files Browse the repository at this point in the history
PLANET-5640: Update Timeline lib to resolve google api version problems
  • Loading branch information
lithrel authored Nov 4, 2020
2 parents 6a35288 + 62a59d7 commit 6ffa4c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/src/blocks/Timeline/Timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useStyleSheet } from '../../components/useStyleSheet/useStyleSheet';
import { useRef, useEffect } from 'react';
import { uniqueId } from 'lodash';

const TIMELINE_JS_VERSION = '3.6.6';
const TIMELINE_JS_VERSION = '3.8.10';

export const Timeline = (props) => {
const {
Expand All @@ -16,7 +16,7 @@ export const Timeline = (props) => {
const timelineNode = useRef(null);

const [stylesLoaded, stylesError] = useStyleSheet(
`https://cdnjs.cloudflare.com/ajax/libs/timelinejs/${TIMELINE_JS_VERSION}/css/timeline.css`
`https://cdn.knightlab.com/libs/timeline3/${TIMELINE_JS_VERSION}/css/timeline.css`
);

const setupTimeline = function() {
Expand All @@ -30,7 +30,7 @@ export const Timeline = (props) => {
}

const [scriptLoaded, scriptError] = useScript(
`https://cdnjs.cloudflare.com/ajax/libs/timelinejs/${TIMELINE_JS_VERSION}/js/timeline-min.js`
`https://cdn.knightlab.com/libs/timeline3/${TIMELINE_JS_VERSION}/js/timeline-min.js`
);

useEffect(
Expand Down

0 comments on commit 6ffa4c0

Please sign in to comment.