Skip to content

Commit b48dc4a

Browse files
authored
Merge pull request #20 from naisergic/feature/Modifications
changing license
2 parents 8f42829 + f2583a7 commit b48dc4a

File tree

3 files changed

+41
-37
lines changed

3 files changed

+41
-37
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Ayush Krishnatray/ Naisergic Sharma
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -219,56 +219,38 @@ export default class App extends Component {
219219
return (
220220
<React.Fragment>
221221
<ReactForm onSubmit={this.handleSubmit} inputProps={{className:"form1",name:"form1"}}>
222-
<div className="mb5">
222+
<div>
223223
<FormInput inputTypeJson={firstName} />
224224
</div>
225-
<div className="mb5">
225+
<div>
226226
<FormInput inputTypeJson={lastName} />
227227
</div>
228-
<div className="mb5">
228+
<div>
229229
<FormInput inputTypeJson={email} checkValidationFunc={()=>{}}/>
230230
</div>
231-
<div className="mb5">
231+
<div>
232232
<FormInput inputTypeJson={password1} />
233233
</div>
234-
<div className="mb5">
234+
<div>
235235
<FormInput inputTypeJson={confirmPassword1} />
236236
</div>
237-
<div className="mb5">
237+
<div>
238238
<FormInput inputTypeJson={submitButton}/>
239239
</div>
240240
</ReactForm>
241241

242-
<ReactForm onSubmit={this.handleSubmit} inputProps={{className:"form1",name:"form1"}}>
243-
<div className="mb5 relative">
244-
<FormInput inputTypeJson={firstName} />
245-
</div>
246-
<div className="mb5 relative">
247-
<FormInput inputTypeJson={lastName} />
248-
</div>
249-
<div className="mb5 relative">
250-
<FormInput inputTypeJson={email} checkValidationFunc={()=>{}}/>
251-
</div>
252-
<div className="mb5 relative">
253-
<FormInput inputTypeJson={password} />
254-
</div>
255-
<div className="mb5 relative">
256-
<FormInput inputTypeJson={confirmPassword} />
257-
</div>
258-
<div className="mb5 relative">
259-
<FormInput inputTypeJson={submitButton}/>
260-
</div>
261-
262-
</ReactForm>
263-
264242
</React.Fragment>
265243
);
266244
}
267245
}
268246

269247
```
248+
## Authors
249+
- © [Naisergic](https://github.com/Naisergic)
250+
- © [Ayush-krishnatray](https://github.com/Ayush-krishnatray)
251+
252+
---
270253

271-
## License
254+
[MIT License.] (https://github.com/naisergic/FormHOC/blob/master/LICENSE)
272255

273-
y © [Naisergic](https://github.com/Naisergic)
274-
y © [Ayush-krishnatray](https://github.com/Ayush-krishnatray)
256+
---

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
{
22
"name": "nform",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "it is a HOC for all of the form input type it will handle error and also maintain the state of every form input type",
55
"author": "Naisergic",
6-
"license": "y",
6+
"license": "MIT",
77
"repository": "https://github.com/naisergic/FormHOC.git",
88
"keywords": [
99
"react-form",
1010
"reactForm",
11-
"jsonForm",
1211
"reactJsonForm",
1312
"reactFormWrapper",
1413
"reactFormContainer",
1514
"formik",
1615
"stateManageForm",
17-
"state-manage-form"
16+
"forms",
17+
"higher order component",
18+
"hoc"
1819
],
1920
"main": "dist/index.js",
2021
"module": "dist/index.es.js",
@@ -34,8 +35,8 @@
3435
},
3536
"peerDependencies": {
3637
"prop-types": "^15.5.4",
37-
"react": "^15.0.0 || ^16.0.0",
38-
"react-dom": "^15.0.0 || ^16.0.0"
38+
"react": "^16.8.6",
39+
"react-dom": "^16.8.6"
3940
},
4041
"devDependencies": {
4142
"babel-core": "^6.26.3",

0 commit comments

Comments
 (0)