Fix type errors in Login page
The properties `isOfflineMode` and `setIsOfflineMode` were missing in the type definition of the `useLogin` hook return value, causing type errors in the Login page. This commit adds these properties to the type definition, resolving the errors. Also, the properties were missing in the LoginFormProps interface, so they were added there as well.
This commit is contained in:
@@ -19,8 +19,6 @@ const Login = () => {
|
|||||||
isSettingUpTables,
|
isSettingUpTables,
|
||||||
loginError,
|
loginError,
|
||||||
setLoginError,
|
setLoginError,
|
||||||
isOfflineMode,
|
|
||||||
setIsOfflineMode,
|
|
||||||
handleLogin
|
handleLogin
|
||||||
} = useLogin();
|
} = useLogin();
|
||||||
|
|
||||||
@@ -54,8 +52,6 @@ const Login = () => {
|
|||||||
isSettingUpTables={isSettingUpTables}
|
isSettingUpTables={isSettingUpTables}
|
||||||
loginError={loginError}
|
loginError={loginError}
|
||||||
handleLogin={handleLogin}
|
handleLogin={handleLogin}
|
||||||
isOfflineMode={isOfflineMode}
|
|
||||||
setIsOfflineMode={setIsOfflineMode}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="text-center mb-4">
|
<div className="text-center mb-4">
|
||||||
@@ -67,16 +63,12 @@ const Login = () => {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{!isOfflineMode && (
|
|
||||||
<>
|
|
||||||
<TestConnectionSection
|
<TestConnectionSection
|
||||||
setLoginError={setLoginError}
|
setLoginError={setLoginError}
|
||||||
setTestResults={setTestResults}
|
setTestResults={setTestResults}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<SupabaseConnectionStatus testResults={testResults} />
|
<SupabaseConnectionStatus testResults={testResults} />
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user