Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mock listingBookings object as used in lesson 7.4 of Part II of the TinyHouse Fullstack React Masterclass.
const listingBookings = {
total: 4,
result: [
{
id: "5daa530eefc64b001767247c",
tenant: {
id: "117422637055829818290",
name: "User X",
avatar:
"https://lh3.googleusercontent.com/a-/AAuE7mBL9NpzsFA6mGSC8xIIJfeK4oTeOJpYvL-gAyaB=s100",
__typename: "User"
},
checkIn: "2019-10-29",
checkOut: "2019-10-31",
__typename: "Booking"
},
{
id: "5daa530eefc64b001767247d",
tenant: {
id: "117422637055829818290",
name: "User X",
avatar:
"https://lh3.googleusercontent.com/a-/AAuE7mBL9NpzsFA6mGSC8xIIJfeK4oTeOJpYvL-gAyaB=s100",
__typename: "User"
},
checkIn: "2019-11-01",
checkOut: "2019-11-03",
__typename: "Booking"
},
{
id: "5daa530eefc64b001767247g",
tenant: {
id: "117422637055829818290",
name: "User X",
avatar:
"https://lh3.googleusercontent.com/a-/AAuE7mBL9NpzsFA6mGSC8xIIJfeK4oTeOJpYvL-gAyaB=s100",
__typename: "User"
},
checkIn: "2019-11-05",
checkOut: "2019-11-09",
__typename: "Booking"
},
{
id: "5daa530eefc64b001767247f",
tenant: {
id: "117422637055829818290",
name: "User X",
avatar:
"https://lh3.googleusercontent.com/a-/AAuE7mBL9NpzsFA6mGSC8xIIJfeK4oTeOJpYvL-gAyaB=s100",
__typename: "User"
},
checkIn: "2019-11-10",
checkOut: "2019-11-11",
__typename: "Booking"
}
]
} as any;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.