them file env
This commit is contained in:
2
app/.env
Normal file
2
app/.env
Normal file
@@ -0,0 +1,2 @@
|
||||
REACT_APP_HOST='http://api.face-classify.beetai.com'
|
||||
|
||||
@@ -124,6 +124,7 @@ export default function ListItem() {
|
||||
|
||||
const handleOnKeyDown = e => {
|
||||
if (e.key === 'Enter') {
|
||||
setActivePage(1)
|
||||
getData(1);
|
||||
}
|
||||
}
|
||||
@@ -230,6 +231,7 @@ export default function ListItem() {
|
||||
<div className="pl-3">
|
||||
<button
|
||||
onClick={() => {
|
||||
setActivePage(1)
|
||||
getData(1)
|
||||
}}
|
||||
className="btn btn-accent m-btn m-btn--icon" id="m_search">
|
||||
@@ -241,7 +243,11 @@ export default function ListItem() {
|
||||
</div>
|
||||
<div className="pl-3">
|
||||
<button
|
||||
onClick={() => reset()}
|
||||
onClick={() => {
|
||||
setDataSearch("")
|
||||
setActivePage(1)
|
||||
getData(1)
|
||||
}}
|
||||
className="btn btn-secondary m-btn m-btn--icon" id="m_reset">
|
||||
<span>
|
||||
<i className="la la-rotate-left" />
|
||||
|
||||
Reference in New Issue
Block a user