mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-20 18:51:53 +00:00
Replace remaining ramda references with shlinkio/data-manipulation
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { memoizeWith } from '@shlinkio/data-manipulation';
|
||||
import { compare } from 'compare-versions';
|
||||
import { memoizeWith } from 'ramda';
|
||||
|
||||
export type Empty = null | undefined | '' | never[];
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
import { range } from 'ramda';
|
||||
import type { SyntheticEvent } from 'react';
|
||||
|
||||
export const handleEventPreventingDefault = <T>(handler: () => T) => (e: SyntheticEvent) => {
|
||||
e.preventDefault();
|
||||
handler();
|
||||
};
|
||||
|
||||
export const rangeOf = <T>(size: number, mappingFn: (value: number) => T, startAt = 1): T[] =>
|
||||
range(startAt, size + 1).map(mappingFn);
|
||||
|
||||
Reference in New Issue
Block a user