Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions UIcode/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
REACT_APP_API_URL=http://localhost:4080
REACT_APP_GOOGLE_CLIENT_ID=711253381463-l6acl9v1blh2i71jmlu01olfbg60nlj3.apps.googleusercontent.com
REACT_APP_ENCLAVE_URL=https://safetrace.enigma.co
REACT_APP_GOOGLE_MAPS_API_KEY=AIzaSyCh90IL7Ek4iDZqHUKJSeXrubCTGi4GbsQ
167 changes: 0 additions & 167 deletions UIcode/index copy.js

This file was deleted.

167 changes: 0 additions & 167 deletions UIcode/index.js

This file was deleted.

26 changes: 0 additions & 26 deletions UIcode/server.js

This file was deleted.

4 changes: 3 additions & 1 deletion UIcode/src/Pages/Contribute/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const Contribute = ({ history }) => {
});

const handleFileSubmit = (file) => {
console.log('json_file_uploaded',file);
parseJsonFile(file)
.then((json) => {
const data = convertLocationData(json, testResult === "positive");
Expand All @@ -66,7 +67,8 @@ const Contribute = ({ history }) => {

const handleTestDateChange = (date) => setTestDate(date);
const handleNextClick = () => {
if (step === 1) {
console.log('step',step, testResult);
if (step === 1 && testResult !== "not_tested") {
sendReport();
} else {
nextPage();
Expand Down
1 change: 1 addition & 0 deletions UIcode/src/Pages/Results/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const Results = () => {

if (response.length) {
findGeoLocations(response).then((res) => {
console.log(response);
return(response);
// setResults(
// res
Expand Down
Loading