Skip to content

Commit bccc0b5

Browse files
chore: cleanup
1 parent a1f16d5 commit bccc0b5

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

app/components/AuthWrapper.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ export default function AuthWrapper({ children }: AuthWrapperProps) {
2121
try {
2222
setError(null);
2323

24-
// The library uses this to restore session state from localStorage
25-
const redirectInfo = await handleIncomingRedirect({
26-
restorePreviousSession: true,
27-
});
28-
2924
// Get the session instance after handling redirect
3025
const session = getSession();
3126

@@ -40,8 +35,6 @@ export default function AuthWrapper({ children }: AuthWrapperProps) {
4035
}
4136
}
4237

43-
44-
4538
setIsAuthenticated(isLoggedIn);
4639
} catch (err) {
4740
const errorMessage =
@@ -61,9 +54,6 @@ export default function AuthWrapper({ children }: AuthWrapperProps) {
6154
if (!isAuthenticated && !error) {
6255
const interval = setInterval(async () => {
6356
try {
64-
const redirectInfo = await handleIncomingRedirect({
65-
restorePreviousSession: true,
66-
});
6757
const session = getSession();
6858
if (session.info.isLoggedIn) {
6959
setIsAuthenticated(true);

app/components/shared/Input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const Input = forwardRef<HTMLInputElement, InputProps>(function Input({
3333
const paddingRight = rightIcon ? "pr-9" : "pr-3";
3434

3535
return (
36-
<div className="w-full">
36+
<section className="w-full">
3737
{label && (
3838
<label
3939
htmlFor={inputId}
@@ -80,7 +80,7 @@ const Input = forwardRef<HTMLInputElement, InputProps>(function Input({
8080
{helperText}
8181
</p>
8282
)}
83-
</div>
83+
</section>
8484
);
8585
});
8686

0 commit comments

Comments
 (0)