Ghost/ghost/portal/src/AppContext.js
Rishabh 031aa5f2bc Added newsletter selection for signup flows
refs https://github.com/TryGhost/Team/issues/1490

Adds newsletter subscription preference page as an intermediary step before signing up as paid or free member.
2022-04-13 18:43:23 +05:30

17 lines
325 B
JavaScript

// Ref: https://reactjs.org/docs/context.html
const React = require('react');
const AppContext = React.createContext({
site: {},
member: {},
action: '',
lastPage: '',
brandColor: '',
pageData: {},
onAction: (action, data) => {
return {action, data};
}
});
export default AppContext;