Zobrazování data u poslední aktualizace menu
This commit is contained in:
@@ -20,6 +20,7 @@ import { faChainBroken, faChevronLeft, faChevronRight, faGear, faSatelliteDish,
|
||||
import Loader from './components/Loader';
|
||||
import { getData, errorHandler, getQrUrl } from './api/Api';
|
||||
import { addChoice, removeChoices, removeChoice, changeDepartureTime, jdemeObed } from './api/FoodApi';
|
||||
import { getHumanDateTime } from './Utils';
|
||||
|
||||
const EVENT_CONNECT = "connect"
|
||||
|
||||
@@ -315,7 +316,7 @@ function App() {
|
||||
}
|
||||
return <Col md={12} lg={4}>
|
||||
<h3>{name}</h3>
|
||||
{menu?.lastUpdate && <small>Poslední aktualizace: {menu.lastUpdate}</small>}
|
||||
{menu?.lastUpdate && <small>Poslední aktualizace: {getHumanDateTime(new Date(menu.lastUpdate))}</small>}
|
||||
{content}
|
||||
</Col>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user