Skip to content

Commit

Permalink
fix: eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozwiaczek committed Apr 8, 2021
1 parent a9c8ee9 commit fea66fa
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = {
argsIgnorePattern: '^_',
},
],
'@typescript-eslint/return-await': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'react/jsx-filename-extension': 0,
'import/no-unresolved': 0,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useSignUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface SignUpRequires {
// 2.) signUp<ValuesInterface>({ email, password, age });

export const useSignUp = ({ onSuccess, successMsg }: UseSignUpProps = {}) => {
return async <T extends SignUpRequires>(props: any): Promise<string | undefined> => {
return async (props: any): Promise<string | undefined> => {
const { email, password } = props;
const formattedEmail = email.trim().toLowerCase();

Expand Down
4 changes: 2 additions & 2 deletions src/stories/forms/SignUp.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export default {
component: SignUp,
} as Meta;

export const Default: Story<SignUpProps> = (args) => <SignUp {...args} onSubmit={args.onSubmit} />;
export const Default: Story<SignUpProps> = (args) => <SignUp {...args} />;

export const CustomFields: Story<SignUpProps> = (args) => (
<SignUp {...args} onSubmit={args.onSubmit}>
<SignUp {...args}>
<FormInput source="firstName" />
<FormInput source="lastName" required />
</SignUp>
Expand Down
6 changes: 3 additions & 3 deletions src/stories/inputs/FormInput.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ interface TemplateProps extends FormInputProps {
};
}

const Template: Story<TemplateProps> = (args) => (
const Template: Story<TemplateProps> = ({ form, ...restArgs }) => (
<Form
{...args.form}
{...form}
onSubmit={() => {}}
render={() => (
<form>
<FormInput {...args} />
<FormInput {...restArgs} />
</form>
)}
/>
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9355,9 +9355,9 @@ raw-loader@^4.0.2:
schema-utils "^3.0.0"

react-colorful@^5.0.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/react-colorful/-/react-colorful-5.1.1.tgz#b242a3a59dc2e740fef9ee072c1d8b49d3465b62"
integrity sha512-CNnpzPOMDUors/WcN23IUkBvdHuzJfr5UuZxW02TyVW5hCmFME3cbxucF26EujKyTt4ageBrLDyQ6JAtjGIzgQ==
version "5.1.2"
resolved "https://registry.yarnpkg.com/react-colorful/-/react-colorful-5.1.2.tgz#5cb1506b8f9104b88d02d34984a36c2d1e477e9e"
integrity sha512-FRt9jz6xjiPqQ6bIAQ26kd0oJhHbGBwsA4BDz/F8FDCFuQJDiEl0wVUARNiqRyvQjwfKuhM42P/bMYI0l92hRw==

react-dev-utils@^11.0.3:
version "11.0.4"
Expand Down

0 comments on commit fea66fa

Please sign in to comment.