add env show select source img

This commit is contained in:
huyt 2022-04-02 09:05:27 +07:00
parent 371f041299
commit e05e40b206
2 changed files with 11 additions and 9 deletions

View File

@ -1,2 +1,2 @@
REACT_APP_HOST='http://api.face-classify.beetai.com'
REACT_APP_SOURCE_IMG=0

View File

@ -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={() => {