From fc9d75f78c0040d2fc321db26b290f5345a54379 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 24 Apr 2020 08:56:55 -0300 Subject: [PATCH] Delete button --- app/containers/Passcode/Base/Button.js | 19 +++++++++++++++---- app/containers/Passcode/Base/index.js | 2 +- app/containers/Passcode/Base/styles.js | 8 +++++--- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/app/containers/Passcode/Base/Button.js b/app/containers/Passcode/Base/Button.js index 8f8f30362..79c8049c0 100644 --- a/app/containers/Passcode/Base/Button.js +++ b/app/containers/Passcode/Base/Button.js @@ -7,7 +7,7 @@ import { themes } from '../../../constants/colors'; import Touch from '../../../utils/touch'; const Button = ({ - text, disabled, theme, onPress + text, disabled, theme, onPress, del }) => ( onPress && onPress(text)} > - - {text} - + { + del + ? ( + + del + + ) + : ( + + {text} + + ) + } ); @@ -25,6 +35,7 @@ Button.propTypes = { text: PropTypes.string, theme: PropTypes.string, disabled: PropTypes.bool, + del: PropTypes.bool, onPress: PropTypes.func }; diff --git a/app/containers/Passcode/Base/index.js b/app/containers/Passcode/Base/index.js index 4740b4f5f..8cedad737 100644 --- a/app/containers/Passcode/Base/index.js +++ b/app/containers/Passcode/Base/index.js @@ -107,7 +107,7 @@ const Base = forwardRef(({