mirror of
https://github.com/ershisan99/db-studio.git
synced 2025-12-17 05:09:25 +00:00
refactor login form
This commit is contained in:
6
frontend/src/hooks/use-auto-id.ts
Normal file
6
frontend/src/hooks/use-auto-id.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useId } from 'react'
|
||||
|
||||
export const useAutoId = (id?: string) => {
|
||||
const generatedId = useId()
|
||||
return id ?? generatedId
|
||||
}
|
||||
Reference in New Issue
Block a user