mirror of
https://github.com/ershisan99/db-studio.git
synced 2025-12-22 20:59:22 +00:00
refactor login form
This commit is contained in:
1
frontend/src/hooks/index.ts
Normal file
1
frontend/src/hooks/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./use-auto-id";
|
||||
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