Get dependency on uuid package back to fix error on non-secure contexts

This commit is contained in:
Alejandro Celaya
2024-10-09 09:27:08 +02:00
parent 1ba2241203
commit 453d245924
7 changed files with 48 additions and 5 deletions

View File

@@ -1,6 +1,9 @@
import type { SyntheticEvent } from 'react';
import { v4 } from 'uuid';
export const handleEventPreventingDefault = <T>(handler: () => T) => (e: SyntheticEvent) => {
e.preventDefault();
handler();
};
export const randomUUID = () => v4();