fix eslint errors in api functions
This commit is contained in:
parent
5d757a30f7
commit
dff86c9519
@ -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;
|
@ -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;
|
@ -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;
|
Loading…
Reference in New Issue
Block a user