Skip to content

Commit

Permalink
fix floatingActionButton style use
Browse files Browse the repository at this point in the history
  • Loading branch information
rayane-djouah committed Dec 9, 2023
1 parent d0c7daa commit 8964dc9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/FloatingActionButton/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import withTheme, {withThemePropTypes} from '@components/withTheme';
import withThemeStyles, {withThemeStylesPropTypes} from '@components/withThemeStyles';
import useLocalize from '@hooks/useLocalize';
import compose from '@libs/compose';
import styles from '@styles/styles';
import FabPlusIcon from './FabPlusIcon';

const AnimatedPressable = Animated.createAnimatedComponent(PressableWithFeedback);
Expand All @@ -27,7 +26,6 @@ const propTypes = {
/* An accessibility role for the button */
role: PropTypes.string.isRequired,

...withLocalizePropTypes,
...withThemeStylesPropTypes,
...withThemePropTypes,
};
Expand All @@ -51,7 +49,7 @@ const FloatingActionButton = React.forwardRef(({onPress, isActive, accessibility
return {
transform: [{rotate: `${animatedValue.value * 135}deg`}],
backgroundColor,
borderRadius: styles.floatingActionButton.borderRadius,
borderRadius: themeStyles.floatingActionButton.borderRadius,
};
});

Expand Down

0 comments on commit 8964dc9

Please sign in to comment.