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:
parent
7f0e55e7cf
commit
940725d978
2 changed files with 8 additions and 3 deletions
|
@ -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'
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue