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

Commit

Permalink
fix(Form): Removed unnecessary call to cn.
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCoplan committed Nov 30, 2018
1 parent dd06981 commit 4e9bcd4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/Form/Form.react.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// @flow
import * as React from "react";
import cn from "classnames";

import FormGroup from "./FormGroup.react";
import FormLabel from "./FormLabel.react";
Expand Down Expand Up @@ -48,10 +47,9 @@ function Form({
onSubmit,
autocomplete,
}: Props): React.Node {
const classes = cn(className);
return (
<form
className={classes}
className={className}
onSubmit={onSubmit}
action={action}
method={method}
Expand All @@ -63,7 +61,7 @@ function Form({
}

Form.defaultProps = {
autocomplete: 'off',
autocomplete: "off",
};

Form.Group = FormGroup;
Expand Down

0 comments on commit 4e9bcd4

Please sign in to comment.