fix: lint

This commit is contained in:
Ivan Shmidt
2020-07-10 15:51:46 +02:00
parent 5c487c127b
commit 05519f880b
@@ -279,16 +279,13 @@ export function useBuilds() {
const [total, setTotal] = useState(0);
const [page, setPage] = useState(0);
const [pageSize, setPageSize] = useState(5);
const getBuilds = useCallback(async (_options: any) => buildsMock, []);
const getBuilds = useCallback(async () => buildsMock, []);
const restartBuild = async (_buildId: number) => {};
const restartBuild = async () => {};
const { loading, value: builds, retry } = useAsyncRetry(
() =>
getBuilds({
perPage: pageSize,
page: page,
}).then((allBuilds): Build[] => {
getBuilds().then((allBuilds): Build[] => {
setTotal(allBuilds.total_count);
// Transformation here
return allBuilds.workflow_runs.map(run => ({