This repository has been archived by the owner on Jun 15, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ModelInputField component within ModelDetail
- Loading branch information
Showing
2 changed files
with
32 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from "react"; | ||
|
||
function ModelInputField(props) { | ||
return ( | ||
<div key={props.label} className="form-group"> | ||
<div> | ||
<label className="col-sm-4 col-md-4 col-lg-4" | ||
key={props.label}>{props.label} {" "} | ||
</label> | ||
<input type={props.type} | ||
className="col-sm-2 col-md-2 col-lg-2" style={{fontSize:"15pt"}} | ||
placeholder={props.placeholder} | ||
onChange={props.propChange} /*style={{width: 60}} */ | ||
name={props.name}/> | ||
<span className="col-sm-6 col-md-6 col-lg-6" style={{color:"red", fontSize: 12}}> | ||
{props.error}</span> | ||
<br/> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default ModelInputField; |