0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Allowed offers page load with fixtures

no refs
This commit is contained in:
Rishabh 2021-10-15 17:56:46 +05:30
parent 7f0e55e7cf
commit 940725d978
2 changed files with 8 additions and 3 deletions

View file

@ -19,7 +19,8 @@ const DEV_MODE_DATA = {
showPopup: true,
site: Fixtures.site,
member: Fixtures.member.free,
page: 'signup'
page: 'offer',
pageData: Fixtures.offer
};
function SentryErrorBoundary({site, children}) {
@ -145,7 +146,7 @@ export default class App extends React.Component {
async initSetup() {
try {
// Fetch data from API, links, preview, dev sources
const {site, member, page, showPopup, popupNotification, lastPage, pageQuery} = await this.fetchData();
const {site, member, page, showPopup, popupNotification, lastPage, pageQuery, pageData} = await this.fetchData();
const state = {
site,
member,
@ -153,6 +154,7 @@ export default class App extends React.Component {
lastPage,
pageQuery,
showPopup,
pageData,
popupNotification,
action: 'init:success',
initStatus: 'success'

View file

@ -258,7 +258,10 @@ export const testSite = getSiteData({
});
export const site = getSiteData({});
export const offer = getOfferData({});
export const offer = getOfferData({
tierId: site.products[0].id
});
export const member = {
free: getMemberData(),
paid: getMemberData({