add env show select source img
This commit is contained in:
parent
371f041299
commit
e05e40b206
2
app/.env
2
app/.env
|
@ -1,2 +1,2 @@
|
|||
REACT_APP_HOST='http://api.face-classify.beetai.com'
|
||||
|
||||
REACT_APP_SOURCE_IMG=0
|
||||
|
|
|
@ -262,14 +262,16 @@ class ImportImage extends Component {
|
|||
data-col-index={0}
|
||||
/>
|
||||
</div>
|
||||
{/* <div className="form-group m-form__group col-xl-2">
|
||||
<Select
|
||||
placeholder={'Loại ảnh'}
|
||||
value={this.state.valueSelected}
|
||||
onChange={this.changeHandleFilter}
|
||||
options={this.state.optionSelect}
|
||||
/>
|
||||
</div> */}
|
||||
<div className="form-group m-form__group col-xl-2">
|
||||
{process.env.REACT_APP_SOURCE_IMG === "1" ?
|
||||
<Select
|
||||
placeholder={'Loại ảnh'}
|
||||
value={this.state.valueSelected}
|
||||
onChange={this.changeHandleFilter}
|
||||
options={this.state.optionSelect}
|
||||
/> : ""
|
||||
}
|
||||
</div>
|
||||
<div className="pl-3">
|
||||
<button
|
||||
onClick={() => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user