Refactor useLogin hook
Refactor the useLogin hook to separate login and table setup logic for better maintainability.
This commit is contained in:
@@ -16,6 +16,7 @@ const Login = () => {
|
||||
showPassword,
|
||||
setShowPassword,
|
||||
isLoading,
|
||||
isSettingUpTables,
|
||||
loginError,
|
||||
setLoginError,
|
||||
handleLogin
|
||||
@@ -48,6 +49,7 @@ const Login = () => {
|
||||
showPassword={showPassword}
|
||||
setShowPassword={setShowPassword}
|
||||
isLoading={isLoading}
|
||||
isSettingUpTables={isSettingUpTables}
|
||||
loginError={loginError}
|
||||
handleLogin={handleLogin}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user