Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit 4e9bcd4

Browse files
committed
fix(Form): Removed unnecessary call to cn.
1 parent dd06981 commit 4e9bcd4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/Form/Form.react.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// @flow
22
import * as React from "react";
3-
import cn from "classnames";
43

54
import FormGroup from "./FormGroup.react";
65
import FormLabel from "./FormLabel.react";
@@ -48,10 +47,9 @@ function Form({
4847
onSubmit,
4948
autocomplete,
5049
}: Props): React.Node {
51-
const classes = cn(className);
5250
return (
5351
<form
54-
className={classes}
52+
className={className}
5553
onSubmit={onSubmit}
5654
action={action}
5755
method={method}
@@ -63,7 +61,7 @@ function Form({
6361
}
6462

6563
Form.defaultProps = {
66-
autocomplete: 'off',
64+
autocomplete: "off",
6765
};
6866

6967
Form.Group = FormGroup;

0 commit comments

Comments
 (0)