mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -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,
|
showPopup: true,
|
||||||
site: Fixtures.site,
|
site: Fixtures.site,
|
||||||
member: Fixtures.member.free,
|
member: Fixtures.member.free,
|
||||||
page: 'signup'
|
page: 'offer',
|
||||||
|
pageData: Fixtures.offer
|
||||||
};
|
};
|
||||||
|
|
||||||
function SentryErrorBoundary({site, children}) {
|
function SentryErrorBoundary({site, children}) {
|
||||||
|
@ -145,7 +146,7 @@ export default class App extends React.Component {
|
||||||
async initSetup() {
|
async initSetup() {
|
||||||
try {
|
try {
|
||||||
// Fetch data from API, links, preview, dev sources
|
// 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 = {
|
const state = {
|
||||||
site,
|
site,
|
||||||
member,
|
member,
|
||||||
|
@ -153,6 +154,7 @@ export default class App extends React.Component {
|
||||||
lastPage,
|
lastPage,
|
||||||
pageQuery,
|
pageQuery,
|
||||||
showPopup,
|
showPopup,
|
||||||
|
pageData,
|
||||||
popupNotification,
|
popupNotification,
|
||||||
action: 'init:success',
|
action: 'init:success',
|
||||||
initStatus: 'success'
|
initStatus: 'success'
|
||||||
|
|
|
@ -258,7 +258,10 @@ export const testSite = getSiteData({
|
||||||
});
|
});
|
||||||
|
|
||||||
export const site = getSiteData({});
|
export const site = getSiteData({});
|
||||||
export const offer = getOfferData({});
|
export const offer = getOfferData({
|
||||||
|
tierId: site.products[0].id
|
||||||
|
});
|
||||||
|
|
||||||
export const member = {
|
export const member = {
|
||||||
free: getMemberData(),
|
free: getMemberData(),
|
||||||
paid: getMemberData({
|
paid: getMemberData({
|
||||||
|
|
Loading…
Add table
Reference in a new issue