them file env

This commit is contained in:
huyt 2022-01-08 21:46:40 +07:00
parent 6ac9ddf8c1
commit 669089a6a5
3 changed files with 9 additions and 2 deletions

1
.gitignore vendored
View File

@ -17,7 +17,6 @@
.env.development.local .env.development.local
.env.test.local .env.test.local
.env.production.local .env.production.local
.env
.env.production .env.production
.env.staging .env.staging

2
app/.env Normal file
View File

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

View File

@ -124,6 +124,7 @@ export default function ListItem() {
const handleOnKeyDown = e => { const handleOnKeyDown = e => {
if (e.key === 'Enter') { if (e.key === 'Enter') {
setActivePage(1)
getData(1); getData(1);
} }
} }
@ -230,6 +231,7 @@ export default function ListItem() {
<div className="pl-3"> <div className="pl-3">
<button <button
onClick={() => { onClick={() => {
setActivePage(1)
getData(1) getData(1)
}} }}
className="btn btn-accent m-btn m-btn--icon" id="m_search"> className="btn btn-accent m-btn m-btn--icon" id="m_search">
@ -241,7 +243,11 @@ export default function ListItem() {
</div> </div>
<div className="pl-3"> <div className="pl-3">
<button <button
onClick={() => reset()} onClick={() => {
setDataSearch("")
setActivePage(1)
getData(1)
}}
className="btn btn-secondary m-btn m-btn--icon" id="m_reset"> className="btn btn-secondary m-btn m-btn--icon" id="m_reset">
<span> <span>
<i className="la la-rotate-left" /> <i className="la la-rotate-left" />