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
export function encodeURLParams(params) { | |
return Object | |
.entries(params) | |
.sort((a, b) => a[0] - b[0]) | |
.reduce((search, entry) => [ | |
...search, | |
entry | |
.map(encodeURIComponent) | |
.join('=') | |
], []) |
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, {Component} from 'react'; | |
const SECOND = 1000, | |
MINUTE = SECOND * 60, | |
HOUR = MINUTE * 60, | |
DAY = HOUR * 24, | |
MONTH = DAY * 30, | |
YEAR = DAY * 365; | |
export const getTimeAgoString = (timestamp) => { |
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, { ReactNode, useMemo } from "react"; | |
import { Bar, RectangleProps, ComposedChart } from "recharts"; | |
import { CategoricalChartProps } from "recharts/types/chart/generateCategoricalChart"; | |
export interface CandlestickData { | |
open?: number; | |
high?: number; | |
low?: number; | |
close?: number; | |
} |
OlderNewer