diff --git a/src/components/SubjectSelector.js b/src/components/SubjectSelector.js index 2144033..732eea5 100644 --- a/src/components/SubjectSelector.js +++ b/src/components/SubjectSelector.js @@ -1,3 +1,5 @@ +// TODO: add number next to it + export default function SubjectSelector (props) { const { activeSubjName, searchTerm, data, onSubjSelect } = props diff --git a/src/constants.json b/src/constants.json index 3d88db4..14d637d 100644 --- a/src/constants.json +++ b/src/constants.json @@ -1,4 +1,5 @@ { - "serverUrl": "http://api.frylabs.net/", + "apiUrl": "http://api.frylabs.net/", + "serverUrl": "http://qmining.frylabs.net/", "mobileWindowWidth": 700 } diff --git a/src/pages/allQuestions.js b/src/pages/allQuestions.js index 4e080b9..59d7351 100644 --- a/src/pages/allQuestions.js +++ b/src/pages/allQuestions.js @@ -14,7 +14,7 @@ export default function AllQuestions (props) { useEffect(() => { console.info('Fetching data') - fetch(`${constants.serverUrl}data.json`) + fetch(`${constants.apiUrl}data.json`) .then((resp) => { return resp.json() }) diff --git a/src/pages/feedback.js b/src/pages/feedback.js index e821dfb..594a15a 100644 --- a/src/pages/feedback.js +++ b/src/pages/feedback.js @@ -5,7 +5,7 @@ export default function Feedback (props) { // TODO: response to user that msg is sucessfully sent return (