mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
031aa5f2bc
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.
17 lines
325 B
JavaScript
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;
|