8cb8411cc6
* Show "Next Hourglass" Month * fix lint * lint, * lint * lint.. * linting bad * ui fixes * remove additional margin * show next hourglass date to debug further * WIP tests - maybe broken logic * flex:1 doesn't work - so stats columns now at 33% width * fix(cron): lint and short circuit * refactor logic * update test dates using timezone * also check for the timezone date * fix timezone for tests * fixing the test dates? * fixing the test dates? * change nextHourglass logic + update gem cap label / value * fix lint * dont add gemsBought to it * remove tooltip Co-authored-by: SabreCat <sabe@habitica.com>
38 lines
930 B
JavaScript
38 lines
930 B
JavaScript
/* eslint-disable import/no-extraneous-dependencies */
|
|
import { storiesOf } from '@storybook/vue';
|
|
|
|
import Subscription from './subscription.vue';
|
|
import { mockStore } from '../../../config/storybook/mock.data';
|
|
|
|
storiesOf('Subscriptions/Detail Page', module)
|
|
.add('subscribed', () => ({
|
|
components: { Subscription },
|
|
template: `
|
|
<div style="position: absolute; margin: 20px">
|
|
<subscription ></subscription>
|
|
</div>
|
|
`,
|
|
data () {
|
|
return {
|
|
};
|
|
},
|
|
store: mockStore({
|
|
userData: {
|
|
purchased: {
|
|
plan: {
|
|
customerId: 'customer-id',
|
|
planId: 'plan-id',
|
|
subscriptionId: 'sub-id',
|
|
gemsBought: 22,
|
|
dateUpdated: new Date(2021, 0, 15),
|
|
consecutive: {
|
|
count: 2,
|
|
gemCapExtra: 4,
|
|
offset: 2,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}),
|
|
}));
|