diff --git a/app/Home.js b/app/Home.js
index dd0bef0..d4d86ab 100644
--- a/app/Home.js
+++ b/app/Home.js
@@ -394,7 +394,7 @@ function HomeScreen (props) {
if (dayOfWeek!=0 && dayOfWeek!=6 && ((hourTime>=10 && time[1]=='AM') || (hourTime ==12 && parseInt(time[0].split(':')[1])<=30 && time[1]=='PM'))) {
showLunch = true
}
- if (dayOfWeek!=0 && dayOfWeek!=6 && hourTime>=10 && (hourTime <=12 && parseInt(time[0].split(':')[1])<=30)) {
+ if (time[1]!='PM' && time[1]!='AM' && dayOfWeek!=0 && dayOfWeek!=6 && hourTime>=10 && (hourTime <=12 && parseInt(time[0].split(':')[1])<=30)) {
showLunch = true
}
@@ -534,6 +534,7 @@ class Home extends React.Component {
return response.text();
})
.then((json) => {
+ console.log(json)
const data = JSON.parse(json).data
data.sort((a,b)=>new Date(b.date).getTime()-new Date(a.date).getTime())
this.setState({data: data});
diff --git a/app/Staff.js b/app/Staff.js
index 9b8b931..426d3ab 100644
--- a/app/Staff.js
+++ b/app/Staff.js
@@ -35,8 +35,11 @@ const Stack = createStackNavigator();
export const StaffInfo = ({route}) => {
const item = route.params;
+
+ console.log(item);
+
return (
-
+ /*
{item.emails.map(email =>
@@ -47,7 +50,46 @@ export const StaffInfo = ({route}) => {
)}
-
+ */
+
+
+
+
+ {item.name}
+ {item.position || ""}
+
+ {item.emails &&
+
+
+
+
+ {"Email"}
+
+
+
+ {item.emails.map(email =>
+ {email}
+ )}
+
+
+ }
+
+ {item.phone &&
+
+
+
+
+ {"Phone"}
+
+
+
+ {item.phone.map(num =>
+ {num}
+ )}
+
+
+ }
+
)
}
function StaffElement (props) {
diff --git a/app/assets/clubs.png b/app/assets/clubs.png
deleted file mode 100644
index 35b8011..0000000
Binary files a/app/assets/clubs.png and /dev/null differ
diff --git a/app/assets/email.png b/app/assets/email.png
deleted file mode 100644
index 1afd4f3..0000000
Binary files a/app/assets/email.png and /dev/null differ
diff --git a/app/assets/lang.png b/app/assets/lang.png
deleted file mode 100644
index d9313a2..0000000
Binary files a/app/assets/lang.png and /dev/null differ
diff --git a/app/assets/location.png b/app/assets/location.png
deleted file mode 100644
index 28aa6d4..0000000
Binary files a/app/assets/location.png and /dev/null differ
diff --git a/app/assets/notifs.png b/app/assets/notifs.png
deleted file mode 100644
index 275de4e..0000000
Binary files a/app/assets/notifs.png and /dev/null differ
diff --git a/app/assets/sponsor.png b/app/assets/sponsor.png
deleted file mode 100644
index fe76107..0000000
Binary files a/app/assets/sponsor.png and /dev/null differ
diff --git a/app/assets/staff.png b/app/assets/staff.png
deleted file mode 100644
index 3fb1d44..0000000
Binary files a/app/assets/staff.png and /dev/null differ
diff --git a/app/assets/time.png b/app/assets/time.png
deleted file mode 100644
index b6ee8a4..0000000
Binary files a/app/assets/time.png and /dev/null differ
diff --git a/app/assets/unknown.png b/app/assets/unknown.png
deleted file mode 100644
index 2eb79d2..0000000
Binary files a/app/assets/unknown.png and /dev/null differ
diff --git a/app/assets/zoom.png b/app/assets/zoom.png
deleted file mode 100644
index 2a73aef..0000000
Binary files a/app/assets/zoom.png and /dev/null differ