update register page ui and api
This commit is contained in:
11
screens/auth/register/lib/hook.ts
Normal file
11
screens/auth/register/lib/hook.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
type State = {
|
||||
referal: string;
|
||||
setReferal: (referal: string) => void;
|
||||
}
|
||||
|
||||
export const useRegisterForm = create<State>((set) => ({
|
||||
referal: '',
|
||||
setReferal: (referal) => set({ referal }),
|
||||
}))
|
||||
Reference in New Issue
Block a user