This file contains hidden or 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 classNameProp from 'class-name-prop'; | |
| import { useRouter } from 'next/router'; | |
| import React from 'react'; | |
| import styles from './RouteIndicator.module.css'; | |
| const DONE_DURATION = 250; | |
| export default function RouteIndicator() { | |
| const router = useRouter(); |
This file contains hidden or 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
| const hashCode = str => str.split('').reduce((prevHash, currVal) => | |
| (((prevHash << 5) - prevHash) + currVal.charCodeAt(0)) | 0, 0); | |
| const sortByTime = (trx, nextTrx) => new Date(trx.time) - new Date(nextTrx.time); | |
| const getMinutesFromDates = (startDate, endDate) => { | |
| const difference = new Date(endDate).getTime() - new Date(startDate).getTime(); | |
| return (difference / 60000); | |
| }; | |
| const findDuplicateTransactions = (transactions = []) => { | |
| let map = new Map(); |