Skip to content

Adding Fixed UI frontend and removed old unused files #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
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