fix eslint errors in api functions

This commit is contained in:
mattyl006 2022-07-29 15:42:17 +02:00
parent 5d757a30f7
commit dff86c9519
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import {API} from "../utils/globals";
import {API} from '../utils/globals';
const getChallengeFullDescription = (setDataState, setLoading, challengeName) => {
fetch(`${API}/challenge-readme/${challengeName}/markdown`)
@ -8,6 +8,6 @@ const getChallengeFullDescription = (setDataState, setLoading, challengeName) =>
if (setLoading)
setLoading(false);
});
}
};
export default getChallengeFullDescription;

View File

@ -1,4 +1,4 @@
import {API} from "../utils/globals";
import {API} from '../utils/globals';
const getChallengeInfo = (setDataState, setLoadingState, challengeName) => {
fetch(`${API}/challenge-info/${challengeName}`)
@ -8,6 +8,6 @@ const getChallengeInfo = (setDataState, setLoadingState, challengeName) => {
if (setLoadingState)
setLoadingState(false);
});
}
};
export default getChallengeInfo;

View File

@ -1,4 +1,4 @@
import {API} from "../utils/globals";
import {API} from '../utils/globals';
const getChallenges = (setDataState, setLoadingState) => {
fetch(`${API}/list-challenges`)
@ -8,6 +8,6 @@ const getChallenges = (setDataState, setLoadingState) => {
if (setLoadingState)
setLoadingState(false);
});
}
};
export default getChallenges;