Add package updates, car updates, and vehicle screens (#25)

This commit is contained in:
John Wu
2021-03-31 17:42:31 -07:00
committed by GitHub
parent 2d1faa8fb7
commit 17f81822c0
33 changed files with 2409 additions and 699 deletions

View File

@@ -11,4 +11,14 @@ export const fetchRespHandler = (response) => {
error: response.statusText,
message: `${response.status} ${response.statusText}`,
}))
}
}
export const addQueryParams = (url, params) => {
if (!params) return url;
var u = new URL(url);
Object.keys(params).forEach(key => u.searchParams.append(key, params[key]))
return u.toString();
}