mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-05-03 06:56:41 +07:00
moved editor to separate reducer
This commit is contained in:
parent
e950d98b73
commit
87670770b0
38 changed files with 1425 additions and 1069 deletions
src/utils
|
@ -164,4 +164,7 @@ export const toTranslit = (string: string = ''): string =>
|
|||
|
||||
export const parseDesc = (text: string = ''): string => text.replace(/(\n{2,})/gi, '\n\n');
|
||||
|
||||
// export const colorizeTitle = (text: string): string => text.replace(/(\[[^\]^]+\])/, ``)
|
||||
export const getEstimated = (distance: number, speed: number = 15): number => {
|
||||
const time = (distance && (distance / speed)) || 0;
|
||||
return (time && parseFloat(time.toFixed(1)));
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue