pixel-react 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pixel-react",
3
3
  "description": "Great for pixel-perfect, design-focused components in React",
4
- "version": "1.2.4",
4
+ "version": "1.2.5",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",
7
7
  "types": "lib/index.d.ts",
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import Form from './Form';
3
3
 
4
4
  interface FormProps<T extends Form.FieldValues> extends Form.UseFormProps<T> {
5
- id?:'string',
5
+ id?: string;
6
6
  onSubmit: Form.SubmitHandler<T>;
7
7
  children: (methods: ReturnType<typeof Form.useForm<T>>) => React.ReactNode;
8
8
  }
@@ -17,11 +17,7 @@ const Forms = <T extends Form.FieldValues>({
17
17
 
18
18
  const { handleSubmit } = methods;
19
19
 
20
- return (
21
- <form onSubmit={handleSubmit(onSubmit)}>
22
- {children(methods)}
23
- </form>
24
- );
20
+ return <form onSubmit={handleSubmit(onSubmit)}>{children(methods)}</form>;
25
21
  };
26
22
 
27
23
  export default Forms;