Skip to content

Commit

Permalink
draft to add start end set func
Browse files Browse the repository at this point in the history
  • Loading branch information
rivernews committed May 26, 2020
1 parent d18f58c commit 0e3384c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/components/hooks/useStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export default function useStore(basePath) {
loading: true,
})
const [selectedStatuses, setSelectedStatuses] = useState({})
const [paginationStartIndex, setPaginationStartIndex] = useState(0)
const [paginationEndIndex, setPaginationEndIndex] = useState(10)

const poll = useRef()

Expand Down Expand Up @@ -72,5 +74,7 @@ export default function useStore(basePath) {
cleanAllFailed,
selectedStatuses,
setSelectedStatuses,
setPaginationStartIndex,
setPaginationEndIndex
}
}

0 comments on commit 0e3384c

Please sign in to comment.