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) => {
|
const getChallengeFullDescription = (setDataState, setLoading, challengeName) => {
|
||||||
fetch(`${API}/challenge-readme/${challengeName}/markdown`)
|
fetch(`${API}/challenge-readme/${challengeName}/markdown`)
|
||||||
@ -8,6 +8,6 @@ const getChallengeFullDescription = (setDataState, setLoading, challengeName) =>
|
|||||||
if (setLoading)
|
if (setLoading)
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
export default getChallengeFullDescription;
|
export default getChallengeFullDescription;
|
@ -1,4 +1,4 @@
|
|||||||
import {API} from "../utils/globals";
|
import {API} from '../utils/globals';
|
||||||
|
|
||||||
const getChallengeInfo = (setDataState, setLoadingState, challengeName) => {
|
const getChallengeInfo = (setDataState, setLoadingState, challengeName) => {
|
||||||
fetch(`${API}/challenge-info/${challengeName}`)
|
fetch(`${API}/challenge-info/${challengeName}`)
|
||||||
@ -8,6 +8,6 @@ const getChallengeInfo = (setDataState, setLoadingState, challengeName) => {
|
|||||||
if (setLoadingState)
|
if (setLoadingState)
|
||||||
setLoadingState(false);
|
setLoadingState(false);
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
export default getChallengeInfo;
|
export default getChallengeInfo;
|
@ -1,4 +1,4 @@
|
|||||||
import {API} from "../utils/globals";
|
import {API} from '../utils/globals';
|
||||||
|
|
||||||
const getChallenges = (setDataState, setLoadingState) => {
|
const getChallenges = (setDataState, setLoadingState) => {
|
||||||
fetch(`${API}/list-challenges`)
|
fetch(`${API}/list-challenges`)
|
||||||
@ -8,6 +8,6 @@ const getChallenges = (setDataState, setLoadingState) => {
|
|||||||
if (setLoadingState)
|
if (setLoadingState)
|
||||||
setLoadingState(false);
|
setLoadingState(false);
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
export default getChallenges;
|
export default getChallenges;
|
Loading…
Reference in New Issue
Block a user