Commit 79b78c25 authored by Mustafa Gezen's avatar Mustafa Gezen 🏗
Browse files

update ui to reflect backend changes

parent cb19eb49
......@@ -38,13 +38,13 @@ export const Dashboard = () => {
React.useEffect(() => {
(async () => {
const [err, res] = await to(Axios.get('/build/imports/?size=5'));
const [err, res] = await to(Axios.get('/imports/?size=5'));
if (res) {
setImports(res.data);
}
})().then();
(async () => {
const [err, res] = await to(Axios.get('/build/?size=5'));
const [err, res] = await to(Axios.get('/builds/?size=5'));
if (res) {
setBuilds(res.data);
}
......
......@@ -149,7 +149,7 @@ export const Packages = () => {
(async () => {
const ids = rowsToIds(rows);
await to(Axios.post(`/build${imports ? '/imports' : ''}/batch`, ids));
await to(Axios.post(`/${imports ? '/imports' : '/builds'}/batch`, ids));
setShowImportModal(false);
setShowBuildModal(false);
......@@ -202,7 +202,6 @@ export const Packages = () => {
getToolbarProps,
getBatchActionProps,
selectedRows,
onInputChange,
getTableProps,
getTableContainerProps,
}) => (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment