Split activity graph into component & typed

This commit is contained in:
2022-08-08 18:44:07 +02:00
parent 96c412ca49
commit dc69b4086c
5 changed files with 399 additions and 314 deletions

View File

@@ -444,8 +444,8 @@ const unlinkPlexAccount = () => {
// - - - User graphs - - -
const fetchChart = (urlPath, days, chartType) => {
const url = new URL("/api/v1/user" + urlPath, SEASONED_URL);
const fetchGraphData = (urlPath, days, chartType) => {
const url = new URL("/api/v1/user/" + urlPath, SEASONED_URL);
url.searchParams.append("days", days);
url.searchParams.append("y_axis", chartType);
@@ -544,7 +544,7 @@ export {
logout,
getSettings,
updateSettings,
fetchChart,
fetchGraphData,
getEmoji,
elasticSearchMoviesAndShows
};