-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor file imports and update version; add DefaultVal demo component
- Loading branch information
Showing
10 changed files
with
78 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from "react"; | ||
import { withProps } from "recompose"; | ||
|
||
import { InputField } from "../../../src"; | ||
import { compose } from "redux"; | ||
import { reduxForm } from "redux-form"; | ||
|
||
export default compose( | ||
withProps(() => { | ||
return { | ||
initialValues: { | ||
defaultVal: "Default Value From Initial" | ||
} | ||
}; | ||
}), | ||
reduxForm({ | ||
form: "defaultValForm" | ||
}) | ||
)(function DefaultVal() { | ||
return ( | ||
<div style={{}}> | ||
{/* default val demo for InputField */} | ||
<InputField | ||
label="Default Value" | ||
name="defaultVal" | ||
defaultValue="Default Value" | ||
placeholder="Enter text here" | ||
/> | ||
<InputField | ||
label="Default Value 2" | ||
name="defaultVal2" | ||
defaultValue="Default Value from defaultValue prop" | ||
placeholder="Enter text here" | ||
/> | ||
</div> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters