1
1
import React from 'react' ;
2
2
import { View } from 'react-native' ;
3
- import useLocalize from '@hooks/useLocalize' ;
4
- import useTheme from '@hooks/useTheme' ;
5
3
import useThemeStyles from '@hooks/useThemeStyles' ;
6
4
import CONST from '@src/CONST' ;
7
5
import Button from './Button' ;
8
6
import Header from './Header' ;
9
- import Icon from './Icon' ;
10
- import * as Expensicons from './Icon/Expensicons' ;
11
7
import Modal from './Modal' ;
12
- import PressableWithoutFeedback from './Pressable/PressableWithoutFeedback' ;
13
8
import Text from './Text' ;
14
- import Tooltip from './Tooltip' ;
15
9
16
10
type DecisionModalProps = {
17
11
/** Title describing purpose of modal */
@@ -43,8 +37,6 @@ type DecisionModalProps = {
43
37
} ;
44
38
45
39
function DecisionModal ( { title, prompt = '' , firstOptionText, secondOptionText, onFirstOptionSubmit, onSecondOptionSubmit, isSmallScreenWidth, onClose, isVisible} : DecisionModalProps ) {
46
- const { translate} = useLocalize ( ) ;
47
- const theme = useTheme ( ) ;
48
40
const styles = useThemeStyles ( ) ;
49
41
50
42
return (
@@ -60,21 +52,7 @@ function DecisionModal({title, prompt = '', firstOptionText, secondOptionText, o
60
52
title = { title }
61
53
containerStyles = { [ styles . alignItemsCenter ] }
62
54
/>
63
- < Tooltip text = { translate ( 'common.close' ) } >
64
- < PressableWithoutFeedback
65
- onPress = { onClose }
66
- style = { [ styles . touchableButtonImage ] }
67
- accessibilityRole = { CONST . ACCESSIBILITY_ROLE . BUTTON }
68
- accessibilityLabel = { translate ( 'common.close' ) }
69
- >
70
- < Icon
71
- src = { Expensicons . Close }
72
- fill = { theme . icon }
73
- />
74
- </ PressableWithoutFeedback >
75
- </ Tooltip >
76
55
</ View >
77
-
78
56
< Text > { prompt } </ Text >
79
57
</ View >
80
58
{ firstOptionText && (
0 commit comments