Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Jul 9, 2024
1 parent 43d65c2 commit 22e4f3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/components/Form/SafariFormWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {isSafari} from "@libs/Browser";
import type ChildrenProps from "@src/types/utils/ChildrenProps";
import React from 'react';
import {isSafari} from '@libs/Browser';
import type ChildrenProps from '@src/types/utils/ChildrenProps';

type SafariFormWrapperProps = ChildrenProps;

Expand All @@ -8,7 +9,7 @@ function SafariFormWrapper({children}: SafariFormWrapperProps) {
return <form>{children}</form>;
}

return <>{children}</>;
return children;
}

export default SafariFormWrapper;
2 changes: 1 addition & 1 deletion src/pages/signin/ValidateCodeForm/BaseValidateCodeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {View} from 'react-native';
import type {OnyxEntry} from 'react-native-onyx';
import {withOnyx} from 'react-native-onyx';
import Button from '@components/Button';
import SafariFormWrapper from '@components/Form/SafariFormWrapper';
import FormHelpMessage from '@components/FormHelpMessage';
import type {MagicCodeInputHandle} from '@components/MagicCodeInput';
import MagicCodeInput from '@components/MagicCodeInput';
Expand Down Expand Up @@ -31,7 +32,6 @@ import ONYXKEYS from '@src/ONYXKEYS';
import type {Account, Credentials, Session} from '@src/types/onyx';
import {isEmptyObject} from '@src/types/utils/EmptyObject';
import type ValidateCodeFormProps from './types';
import SafariFormWrapper from '@components/Form/SafariFormWrapper';

type BaseValidateCodeFormOnyxProps = {
/** The details about the account that the user is signing in with */
Expand Down

0 comments on commit 22e4f3f

Please sign in to comment.