mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2025-05-21 02:44:55 +00:00
Add announcements banner loading content
Add leaflet type definitions
This commit is contained in:
parent
782c88d082
commit
05e3adb5bb
7 changed files with 149 additions and 24 deletions
|
@ -4,6 +4,14 @@ async function fakeDelay(timeout = 1000) {
|
|||
await new Promise(resolve => setTimeout(resolve, timeout));
|
||||
}
|
||||
|
||||
export async function getAnnouncements() {
|
||||
const data = {
|
||||
image: "/BannerExampleImage.jpg",
|
||||
};
|
||||
await fakeDelay(2000)
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function getPopularToday() {
|
||||
const data = Items;
|
||||
await fakeDelay(2000)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue