delete unused pngs
|
@ -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'))) {
|
if (dayOfWeek!=0 && dayOfWeek!=6 && ((hourTime>=10 && time[1]=='AM') || (hourTime ==12 && parseInt(time[0].split(':')[1])<=30 && time[1]=='PM'))) {
|
||||||
showLunch = true
|
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
|
showLunch = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -534,6 +534,7 @@ class Home extends React.Component {
|
||||||
return response.text();
|
return response.text();
|
||||||
})
|
})
|
||||||
.then((json) => {
|
.then((json) => {
|
||||||
|
console.log(json)
|
||||||
const data = JSON.parse(json).data
|
const data = JSON.parse(json).data
|
||||||
data.sort((a,b)=>new Date(b.date).getTime()-new Date(a.date).getTime())
|
data.sort((a,b)=>new Date(b.date).getTime()-new Date(a.date).getTime())
|
||||||
this.setState({data: data});
|
this.setState({data: data});
|
||||||
|
|
Before Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 5.0 KiB |