This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState, useCallback } from "react"; | |
import zenscroll from 'zenscroll'; | |
import "./ScrollCircles.css"; | |
const ScrollCircles = () => { | |
const [selectedCircle, setSelectedCircle] = useState("inspiration"); | |
const [isMobile, setIsMobile] = useState(false); | |
let isScrolling = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Psuedo Code | |
const stores = [...] | |
let storesNotInFirebase = [] | |
let timeoutID = TimeOut | |
stores.forEach(store => { | |
getFromFirebase(store).then(() => | |
if(not_in_firebase) addToNotInFirebaseList(store) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useRef } from "react"; | |
import { withRouter } from 'react-router-dom'; | |
function usePrevious(value) { | |
const ref = useRef(); | |
useEffect(() => { | |
ref.current = value; |
NewerOlder