Reorganise functions, Use custom Format Date/Relative Time over dayjs
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
import { flip } from 'svelte/animate'
|
||||
import { crossfadeReceive, crossfadeSend } from '../utils/animations'
|
||||
import { locations, countries, continents } from '../utils/store'
|
||||
import * as fn from '../utils/functions'
|
||||
|
||||
// Dependencies
|
||||
import AOS from 'aos'
|
||||
import { throttle } from '../utils/functions'
|
||||
|
||||
// Components
|
||||
import Button from '../atoms/Button'
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
// Filter by continent
|
||||
// Detects if click difference if too short with a throttled function
|
||||
const toggleContinents = fn.throttle((event, continent) => {
|
||||
const toggleContinents = throttle((event, continent) => {
|
||||
continentsFiltered = (!continent) ? [...continentsToDisplay] : [continent]
|
||||
}, transitionDuration)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user