-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added mock data for testing with
npm start
- Loading branch information
1 parent
f3664b8
commit ed05c3e
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Place } from "Types"; | ||
|
||
const place: Place = { | ||
id: 12949, | ||
title: "Power Plant IM", | ||
subtitle: | ||
"The vast chamber inside this abandoned cooling tower looks like something out of a sci-fi dystopia.", | ||
city: "Charleroi", | ||
state: "Walloon Region", | ||
country: "Belgium", | ||
location: "Charleroi, Belgium", | ||
url: "https://www.atlasobscura.com/places/power-plant-im", | ||
image_url_v2: "", | ||
// image_url: "https://images.atlasobscura.com/browser_tab_images/2019/09/23/19/09/33/3e97eb03-1cbc-4c39-bcf9-b2b302a74d9a/browser_tab_image.jpg", | ||
background_image_url: "/mocks/browser_tab_image_mock.jpg", | ||
image_attribution: | ||
'\u003cspan class="caption-credit"\u003e\u003ca target="_blank" href="http://www.flickr.com/photos/lennartt/8501963784"\u003eLennart Tange\u003c/a\u003e (Creative Commons)\u003c/span\u003e', | ||
destination_url: "https://www.atlasobscura.com/things-to-do/belgium", | ||
}; | ||
|
||
export const getPlaceData = async (): Promise<Place> => { | ||
return new Promise((resolve) => { | ||
resolve(place); | ||
}); | ||
}; |