Remove dependency on uuid package

This commit is contained in:
Alejandro Celaya
2024-11-01 12:09:13 +01:00
parent 88ad2e7fc2
commit dc8c749212
5 changed files with 9 additions and 30 deletions

View File

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