diff options
Diffstat (limited to 'src/features')
5 files changed, 27 insertions, 10 deletions
diff --git a/src/features/planSelection/components/PlanItem.js b/src/features/planSelection/components/PlanItem.js index ea04c8448..ec061377b 100644 --- a/src/features/planSelection/components/PlanItem.js +++ b/src/features/planSelection/components/PlanItem.js | |||
@@ -38,7 +38,7 @@ const styles = theme => ({ | |||
38 | 38 | ||
39 | '& h2': { | 39 | '& h2': { |
40 | textAlign: 'center', | 40 | textAlign: 'center', |
41 | marginBottom: 20, | 41 | marginBottom: 10, |
42 | fontSize: 30, | 42 | fontSize: 30, |
43 | color: theme.styleTypes.primary.contrast, | 43 | color: theme.styleTypes.primary.contrast, |
44 | }, | 44 | }, |
@@ -48,6 +48,7 @@ const styles = theme => ({ | |||
48 | }, | 48 | }, |
49 | priceWrapper: { | 49 | priceWrapper: { |
50 | height: 50, | 50 | height: 50, |
51 | marginBottom: 0, | ||
51 | }, | 52 | }, |
52 | price: { | 53 | price: { |
53 | fontSize: 50, | 54 | fontSize: 50, |
@@ -69,7 +70,7 @@ const styles = theme => ({ | |||
69 | width: 40, | 70 | width: 40, |
70 | border: 0, | 71 | border: 0, |
71 | borderTop: [1, 'solid', theme.styleTypes.primary.contrast], | 72 | borderTop: [1, 'solid', theme.styleTypes.primary.contrast], |
72 | margin: [30, 'auto'], | 73 | margin: [15, 'auto', 20], |
73 | }, | 74 | }, |
74 | header: { | 75 | header: { |
75 | padding: 20, | 76 | padding: 20, |
@@ -78,7 +79,7 @@ const styles = theme => ({ | |||
78 | position: 'relative', | 79 | position: 'relative', |
79 | }, | 80 | }, |
80 | content: { | 81 | content: { |
81 | padding: 20, | 82 | padding: [10, 20, 20], |
82 | background: '#EFEFEF', | 83 | background: '#EFEFEF', |
83 | }, | 84 | }, |
84 | simpleCTA: { | 85 | simpleCTA: { |
diff --git a/src/features/planSelection/components/PlanSelection.js b/src/features/planSelection/components/PlanSelection.js index 9407f6dd3..355187516 100644 --- a/src/features/planSelection/components/PlanSelection.js +++ b/src/features/planSelection/components/PlanSelection.js | |||
@@ -72,6 +72,7 @@ const styles = theme => ({ | |||
72 | justifyContent: 'center', | 72 | justifyContent: 'center', |
73 | alignItems: 'center', | 73 | alignItems: 'center', |
74 | zIndex: 999999, | 74 | zIndex: 999999, |
75 | overflowY: 'scroll', | ||
75 | }, | 76 | }, |
76 | container: { | 77 | container: { |
77 | width: '80%', | 78 | width: '80%', |
@@ -111,6 +112,7 @@ const styles = theme => ({ | |||
111 | 112 | ||
112 | '& svg': { | 113 | '& svg': { |
113 | width: '80px !important', | 114 | width: '80px !important', |
115 | height: '80px !important', | ||
114 | filter: 'drop-shadow( 0px 2px 3px rgba(0, 0, 0, 0.3))', | 116 | filter: 'drop-shadow( 0px 2px 3px rgba(0, 0, 0, 0.3))', |
115 | fill: theme.styleTypes.danger.contrast, | 117 | fill: theme.styleTypes.danger.contrast, |
116 | }, | 118 | }, |
diff --git a/src/features/trialStatusBar/containers/TrialStatusBarScreen.js b/src/features/trialStatusBar/containers/TrialStatusBarScreen.js index 15201496b..e15a1204f 100644 --- a/src/features/trialStatusBar/containers/TrialStatusBarScreen.js +++ b/src/features/trialStatusBar/containers/TrialStatusBarScreen.js | |||
@@ -2,15 +2,21 @@ import React, { Component } from 'react'; | |||
2 | import { observer, inject } from 'mobx-react'; | 2 | import { observer, inject } from 'mobx-react'; |
3 | import PropTypes from 'prop-types'; | 3 | import PropTypes from 'prop-types'; |
4 | import ms from 'ms'; | 4 | import ms from 'ms'; |
5 | import { intlShape } from 'react-intl'; | ||
5 | 6 | ||
6 | import FeaturesStore from '../../../stores/FeaturesStore'; | 7 | import FeaturesStore from '../../../stores/FeaturesStore'; |
7 | import UserStore from '../../../stores/UserStore'; | 8 | import UserStore from '../../../stores/UserStore'; |
8 | import TrialStatusBar from '../components/TrialStatusBar'; | 9 | import TrialStatusBar from '../components/TrialStatusBar'; |
9 | import ErrorBoundary from '../../../components/util/ErrorBoundary'; | 10 | import ErrorBoundary from '../../../components/util/ErrorBoundary'; |
10 | import { trialStatusBarStore } from '..'; | 11 | import { trialStatusBarStore } from '..'; |
12 | import { i18nPlanName } from '../../../helpers/plan-helpers'; | ||
11 | 13 | ||
12 | @inject('stores', 'actions') @observer | 14 | @inject('stores', 'actions') @observer |
13 | class TrialStatusBarScreen extends Component { | 15 | class TrialStatusBarScreen extends Component { |
16 | static contextTypes = { | ||
17 | intl: intlShape, | ||
18 | }; | ||
19 | |||
14 | state = { | 20 | state = { |
15 | showOverlay: true, | 21 | showOverlay: true, |
16 | percent: 0, | 22 | percent: 0, |
@@ -53,6 +59,8 @@ class TrialStatusBarScreen extends Component { | |||
53 | 59 | ||
54 | 60 | ||
55 | render() { | 61 | render() { |
62 | const { intl } = this.context; | ||
63 | |||
56 | const { | 64 | const { |
57 | showOverlay, | 65 | showOverlay, |
58 | percent, | 66 | percent, |
@@ -67,11 +75,13 @@ class TrialStatusBarScreen extends Component { | |||
67 | const { user } = this.props.stores; | 75 | const { user } = this.props.stores; |
68 | const { upgradeAccount } = this.props.actions.payment; | 76 | const { upgradeAccount } = this.props.actions.payment; |
69 | 77 | ||
78 | const planName = i18nPlanName(user.team.plan, intl); | ||
79 | |||
70 | return ( | 80 | return ( |
71 | <ErrorBoundary> | 81 | <ErrorBoundary> |
72 | <TrialStatusBar | 82 | <TrialStatusBar |
73 | planName="Professional" | 83 | planName={planName} |
74 | percent={percent < 5 ? 5 : percent} | 84 | percent={parseFloat(percent < 5 ? 5 : percent)} |
75 | trialEnd={restTime} | 85 | trialEnd={restTime} |
76 | upgradeAccount={() => upgradeAccount({ | 86 | upgradeAccount={() => upgradeAccount({ |
77 | planId: user.team.plan, | 87 | planId: user.team.plan, |
diff --git a/src/features/workspaces/components/WorkspaceDrawer.js b/src/features/workspaces/components/WorkspaceDrawer.js index ee6f8416c..07100f5a1 100644 --- a/src/features/workspaces/components/WorkspaceDrawer.js +++ b/src/features/workspaces/components/WorkspaceDrawer.js | |||
@@ -7,7 +7,7 @@ import { H1, Icon, ProBadge } from '@meetfranz/ui'; | |||
7 | import { Button } from '@meetfranz/forms/lib'; | 7 | import { Button } from '@meetfranz/forms/lib'; |
8 | import ReactTooltip from 'react-tooltip'; | 8 | import ReactTooltip from 'react-tooltip'; |
9 | 9 | ||
10 | import { mdiPlusBox, mdiSettings } from '@mdi/js'; | 10 | import { mdiPlusBox, mdiSettings, mdiStar } from '@mdi/js'; |
11 | import WorkspaceDrawerItem from './WorkspaceDrawerItem'; | 11 | import WorkspaceDrawerItem from './WorkspaceDrawerItem'; |
12 | import { workspaceActions } from '../actions'; | 12 | import { workspaceActions } from '../actions'; |
13 | import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../index'; | 13 | import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../index'; |
@@ -52,6 +52,8 @@ const styles = theme => ({ | |||
52 | drawer: { | 52 | drawer: { |
53 | background: theme.workspaces.drawer.background, | 53 | background: theme.workspaces.drawer.background, |
54 | width: `${theme.workspaces.drawer.width}px`, | 54 | width: `${theme.workspaces.drawer.width}px`, |
55 | display: 'flex', | ||
56 | flexDirection: 'column', | ||
55 | }, | 57 | }, |
56 | headline: { | 58 | headline: { |
57 | fontSize: '24px', | 59 | fontSize: '24px', |
@@ -75,6 +77,7 @@ const styles = theme => ({ | |||
75 | }, | 77 | }, |
76 | workspaces: { | 78 | workspaces: { |
77 | height: 'auto', | 79 | height: 'auto', |
80 | overflowY: 'scroll', | ||
78 | }, | 81 | }, |
79 | premiumAnnouncement: { | 82 | premiumAnnouncement: { |
80 | padding: '20px', | 83 | padding: '20px', |
@@ -89,7 +92,7 @@ const styles = theme => ({ | |||
89 | addNewWorkspaceLabel: { | 92 | addNewWorkspaceLabel: { |
90 | height: 'auto', | 93 | height: 'auto', |
91 | color: theme.workspaces.drawer.buttons.color, | 94 | color: theme.workspaces.drawer.buttons.color, |
92 | marginTop: 40, | 95 | margin: [40, 0], |
93 | textAlign: 'center', | 96 | textAlign: 'center', |
94 | '& > svg': { | 97 | '& > svg': { |
95 | fill: theme.workspaces.drawer.buttons.color, | 98 | fill: theme.workspaces.drawer.buttons.color, |
@@ -174,7 +177,7 @@ class WorkspaceDrawer extends Component { | |||
174 | className={classes.premiumCtaButton} | 177 | className={classes.premiumCtaButton} |
175 | buttonType="primary" | 178 | buttonType="primary" |
176 | label={intl.formatMessage(messages.reactivatePremiumAccount)} | 179 | label={intl.formatMessage(messages.reactivatePremiumAccount)} |
177 | icon="mdiStar" | 180 | icon={mdiStar} |
178 | onClick={() => { | 181 | onClick={() => { |
179 | onUpgradeAccountClick(); | 182 | onUpgradeAccountClick(); |
180 | gaEvent('User', 'upgrade', 'workspaceDrawer'); | 183 | gaEvent('User', 'upgrade', 'workspaceDrawer'); |
diff --git a/src/features/workspaces/components/WorkspacesDashboard.js b/src/features/workspaces/components/WorkspacesDashboard.js index 70e213912..4fb302be2 100644 --- a/src/features/workspaces/components/WorkspacesDashboard.js +++ b/src/features/workspaces/components/WorkspacesDashboard.js | |||
@@ -5,6 +5,7 @@ import { defineMessages, intlShape } from 'react-intl'; | |||
5 | import injectSheet from 'react-jss'; | 5 | import injectSheet from 'react-jss'; |
6 | import { Infobox, Badge } from '@meetfranz/ui'; | 6 | import { Infobox, Badge } from '@meetfranz/ui'; |
7 | 7 | ||
8 | import { mdiCheckboxMarkedCircleOutline } from '@mdi/js'; | ||
8 | import Loader from '../../../components/ui/Loader'; | 9 | import Loader from '../../../components/ui/Loader'; |
9 | import WorkspaceItem from './WorkspaceItem'; | 10 | import WorkspaceItem from './WorkspaceItem'; |
10 | import CreateWorkspaceForm from './CreateWorkspaceForm'; | 11 | import CreateWorkspaceForm from './CreateWorkspaceForm'; |
@@ -128,7 +129,7 @@ class WorkspacesDashboard extends Component { | |||
128 | <Appear className={classes.appear}> | 129 | <Appear className={classes.appear}> |
129 | <Infobox | 130 | <Infobox |
130 | type="success" | 131 | type="success" |
131 | icon="mdiCheckboxMarkedCircleOutline" | 132 | icon={mdiCheckboxMarkedCircleOutline} |
132 | dismissable | 133 | dismissable |
133 | onUnmount={updateWorkspaceRequest.reset} | 134 | onUnmount={updateWorkspaceRequest.reset} |
134 | > | 135 | > |
@@ -142,7 +143,7 @@ class WorkspacesDashboard extends Component { | |||
142 | <Appear className={classes.appear}> | 143 | <Appear className={classes.appear}> |
143 | <Infobox | 144 | <Infobox |
144 | type="success" | 145 | type="success" |
145 | icon="mdiCheckboxMarkedCircleOutline" | 146 | icon={mdiCheckboxMarkedCircleOutline} |
146 | dismissable | 147 | dismissable |
147 | onUnmount={deleteWorkspaceRequest.reset} | 148 | onUnmount={deleteWorkspaceRequest.reset} |
148 | > | 149 | > |