Repository URL to install this package:
|
Version:
0.1.7 ▾
|
import { pathParams } from 'src/bootstrapper/routes/pathParams';
/**
* @todo import route params to keep in sync
*/
const wording = {
// only in classic
// only in wr
signin: 'Sign In',
hello: 'Hello ',
// @todo this should be routing export...
myAccountPath: '/myaccount/welcome',
signUpPath: '/register',
adminSignUpPath: '/adminRegister',
signOutPath: '/logout',
orderLookUpPath: '/orderlookup',
// === extended ===
orderLookup: '',
community: 'Customer Support',
classesAndEvents: 'Track Your Order',
giftCards: 'Gift Cards',
account: 'Account',
signUp: 'Sign Up',
// @todo @fixme move to routing
signIn: '/signin',
signOut: 'Sign Out',
customerSupportPath: 'marketing',
giftCardsPath: 'marketing',
};
const routing = {
signIn: '/signin',
adminSignIn: '/adminSignIn',
signOut: '/logout',
customerSupportPath: '/marketing',
giftCardsPath: '/marketing',
};
const defaultProps = {
wording,
// @TODO className should not be sent through props...
// @james -> we want to make this externally configurable
// in a more powerful way than hardcoding classnames
guestDropdownList: [
{
text: 'Sign In',
icon: 'account',
label: 'signin',
identifier: '@signin',
},
{
text: 'Register',
// has an icon...
icon: 'account',
label: 'register',
identifier: '@register',
},
],
secureDropdownList: [
{
text: 'My Account',
icon: 'home',
label: 'myaccount',
identifier: '@myaccount',
link: `${pathParams.myaccountLanding}`,
},
{
text: 'Order History',
icon: 'orderhistory',
label: 'orderhistory',
identifier: '@orderhistory',
link: `${pathParams.myaccountOrders}`,
},
{
text: 'Sign Out',
icon: 'account',
label: 'signout',
identifier: '@signout',
},
],
};
const { guestDropdownList, secureDropdownList } = defaultProps;
export { defaultProps, wording, guestDropdownList, secureDropdownList, routing };
export default defaultProps;
//# sourceMappingURL=fixture.js.map