Skip to content

Commit

Permalink
fix(client): completed react eslint validation
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-ojha committed Jun 7, 2022
1 parent ad4ecbf commit e5e6df2
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 11 deletions.
4 changes: 3 additions & 1 deletion client/src/services/api/components/MainPageMsgAndNtfBar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance as axios } from "../../axios";

export default {
const mainPageMsgAndNtfBar = {
getNotificationData: async () => {
return await axios({
method: "GET",
Expand All @@ -9,3 +9,5 @@ export default {
});
},
};

export default mainPageMsgAndNtfBar;
4 changes: 3 additions & 1 deletion client/src/services/api/components/MainPageSideBar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance as axios } from "../../axios";

export default {
const mainPageSideBar = {
logOut: async () => {
return await axios({
method: "GET",
Expand All @@ -20,3 +20,5 @@ export default {
});
},
};

export default mainPageSideBar;
4 changes: 3 additions & 1 deletion client/src/services/api/components/postBox.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance as axios } from "../../axios";

export default {
const postBox = {
like: async (data) => {
return await axios({
method: "POST",
Expand All @@ -26,3 +26,5 @@ export default {
});
},
};

export default postBox;
4 changes: 3 additions & 1 deletion client/src/services/api/global/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance as axios } from "../../axios";

export default {
const index = {
getFriendData: async (userID) => {
return await axios({
method: "GET",
Expand All @@ -12,3 +12,5 @@ export default {
});
},
};

export default index;
4 changes: 3 additions & 1 deletion client/src/services/api/global/message.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance as axios } from "../../axios";

export default {
const messageApi = {
getUserMessages: async () => {
return await axios({
method: "GET",
Expand All @@ -9,3 +9,5 @@ export default {
});
},
};

export default messageApi;
4 changes: 3 additions & 1 deletion client/src/services/api/global/user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance as axios } from "../../axios";

export default {
const userApi = {
getFriends: async (id) => {
return await axios({
method: "GET",
Expand Down Expand Up @@ -32,3 +32,5 @@ export default {
});
},
};

export default userApi;
4 changes: 3 additions & 1 deletion client/src/services/api/pages/Video.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance as axios } from "../../axios";

export default {
const videoApi = {
scrapeVideo: async () => {
return await axios({
method: "GET",
Expand Down Expand Up @@ -37,3 +37,5 @@ export default {
});
},
};

export default videoApi;
4 changes: 3 additions & 1 deletion client/src/services/api/pages/homeApi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance as axios } from "../../axios";

export default {
const homeApi = {
post: async (data) => {
return await axios({
method: "POST",
Expand All @@ -10,3 +10,5 @@ export default {
});
},
};

export default homeApi;
4 changes: 3 additions & 1 deletion client/src/services/api/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance as axios } from "../../axios";

export default {
const index = {
index: async () => {
return await axios({
method: "GET",
Expand All @@ -14,3 +14,5 @@ export default {
});
},
};

export default index;
4 changes: 3 additions & 1 deletion client/src/services/api/pages/profileApi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance as axios } from "../../axios";

export default {
const profileApi = {
getUserPosts: async () => {
return await axios({
method: "GET",
Expand All @@ -12,3 +12,5 @@ export default {
});
},
};

export default profileApi;
4 changes: 3 additions & 1 deletion client/src/services/api/pages/settingPageApi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { instance as axios } from "../../axios";

export default {
const settingPageApi = {
changeUserID: async (newUserID) => {
return await axios({
method: "POST",
Expand Down Expand Up @@ -48,3 +48,5 @@ export default {
});
},
};

export default settingPageApi;

0 comments on commit e5e6df2

Please sign in to comment.