From c6dda35baf7eb9a7d89bf224c38973a1b6171c14 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Wed, 4 Sep 2019 15:37:56 +0200 Subject: bugfixing & polishing --- src/features/todos/components/TodosWebview.js | 14 ++++++-------- src/features/todos/containers/TodosScreen.js | 6 ------ src/features/todos/store.js | 3 ++- 3 files changed, 8 insertions(+), 15 deletions(-) (limited to 'src/features/todos') diff --git a/src/features/todos/components/TodosWebview.js b/src/features/todos/components/TodosWebview.js index d8d96ba85..9cf925444 100644 --- a/src/features/todos/components/TodosWebview.js +++ b/src/features/todos/components/TodosWebview.js @@ -10,6 +10,7 @@ import { mdiChevronRight, mdiCheckAll } from '@mdi/js'; import { Button } from '@meetfranz/forms'; import * as environment from '../../../environment'; import Appear from '../../../components/ui/effects/Appear'; +import ActivateTrialButton from '../../../components/ui/activateTrialButton'; const OPEN_TODOS_BUTTON_SIZE = 45; const CLOSE_TODOS_BUTTON_SIZE = 35; @@ -70,7 +71,7 @@ const styles = theme => ({ height: OPEN_TODOS_BUTTON_SIZE, background: theme.todos.toggleButton.background, position: 'absolute', - bottom: 80, + bottom: 120, right: props => (props.width + (props.isVisible ? -OPEN_TODOS_BUTTON_SIZE / 2 : 0)), borderRadius: OPEN_TODOS_BUTTON_SIZE / 2, opacity: props => (props.isVisible ? 0 : 1), @@ -94,7 +95,7 @@ const styles = theme => ({ height: CLOSE_TODOS_BUTTON_SIZE, background: theme.todos.toggleButton.background, position: 'absolute', - bottom: 80, + bottom: 120, right: ({ width }) => (width + -CLOSE_TODOS_BUTTON_SIZE / 2), borderRadius: CLOSE_TODOS_BUTTON_SIZE / 2, opacity: ({ isTodosIncludedInCurrentPlan }) => (!isTodosIncludedInCurrentPlan ? 1 : 0), @@ -143,7 +144,6 @@ class TodosWebview extends Component { width: PropTypes.number.isRequired, minWidth: PropTypes.number.isRequired, isTodosIncludedInCurrentPlan: PropTypes.bool.isRequired, - upgradeAccount: PropTypes.func.isRequired, }; state = { @@ -235,7 +235,6 @@ class TodosWebview extends Component { isVisible, togglePanel, isTodosIncludedInCurrentPlan, - upgradeAccount, } = this.props; const { @@ -291,11 +290,10 @@ class TodosWebview extends Component {

{intl.formatMessage(messages.premiumInfo)}

{intl.formatMessage(messages.rolloutInfo)}

-