Skip to content

Commit

Permalink
fix: form file exports
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Jul 12, 2020
1 parent 513150f commit 01ca9fc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
26 changes: 13 additions & 13 deletions src/Form.tsx
Expand Up @@ -66,7 +66,7 @@ const defaultProps = {
inline: false,
};

const Form: Form = (React.forwardRef(
const FormImpl: Form = (React.forwardRef(
(
{
bsPrefix,
Expand Down Expand Up @@ -94,17 +94,17 @@ const Form: Form = (React.forwardRef(
},
) as unknown) as Form;

Form.displayName = 'Form';
Form.propTypes = propTypes;
Form.defaultProps = defaultProps;
FormImpl.displayName = 'Form';
FormImpl.propTypes = propTypes;
FormImpl.defaultProps = defaultProps;

Form.Row = FormRow;
Form.Group = FormGroup;
Form.Control = FormControl;
Form.Check = FormCheck;
Form.File = FormFile;
Form.Switch = Switch;
Form.Label = FormLabel;
Form.Text = FormText;
FormImpl.Row = FormRow;
FormImpl.Group = FormGroup;
FormImpl.Control = FormControl;
FormImpl.Check = FormCheck;
FormImpl.File = FormFile;
FormImpl.Switch = Switch;
FormImpl.Label = FormLabel;
FormImpl.Text = FormText;

export default Form;
export default FormImpl;
3 changes: 3 additions & 0 deletions src/FormFile.tsx
Expand Up @@ -230,4 +230,7 @@ const FormFile: FormFile = (React.forwardRef(
FormFile.displayName = 'FormFile';
FormFile.propTypes = propTypes;

FormFile.Input = FormFileInput;
FormFile.Label = FormFileLabel;

export default FormFile;
2 changes: 1 addition & 1 deletion www/package.json
Expand Up @@ -68,7 +68,7 @@
"start": "yarn develop",
"develop": "gatsby develop",
"build": "gatsby build",
"deploy": "gatsby build --prefix-links && yarn push-docs",
"deploy": "gatsby build --prefix-paths && yarn push-docs",
"push-docs": "gh-pages -d public --branch master --repo \"https://github.com/react-bootstrap/react-bootstrap.github.io.git\"",
"sort": "import-sort 'src/pages/**/*.js'"
},
Expand Down

0 comments on commit 01ca9fc

Please sign in to comment.