Skip to content

Commit

Permalink
fixup(components): use motionProps from components
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 committed Aug 30, 2022
1 parent 1edb13e commit e5c8746
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,19 @@ import { setCaretPosition } from '@trezor/dom-utils';
import styled, { css } from 'styled-components';

// ok
import { Button, useTheme, variables, Input, Tooltip, Checkbox, Icon } from '@trezor/components';
import {
Button,
useTheme,
variables,
Input,
Tooltip,
Checkbox,
Icon,
motionProps,
} from '@trezor/components';
import { countBytesInString } from '@trezor/utils';

// move to another package, shared package should not import from suite
import ANIMATION from '@trezor/suite/src/config/suite/animation';

// moved
import PasswordStrengthIndicator from './PasswordStrengthIndicator';
Expand Down Expand Up @@ -388,7 +396,7 @@ export const PassphraseTypeCard = (props: Props) => {
{/* Submit button */}
{/* Visible in standalone modal for creating a hidden wallet or after a click also in modal for selecting wallet type */}
{(props.singleColModal || hiddenWalletTouched) && (
<motion.div {...ANIMATION.EXPAND}>
<motion.div {...motionProps.EXPAND}>
<ActionButton
data-test={`@passphrase/${
props.type === 'hidden' ? 'hidden' : 'standard'
Expand Down

0 comments on commit e5c8746

Please sign in to comment.