Skip to content

Commit dba5a20

Browse files
committed
fix: remove action view
1 parent 6ead43a commit dba5a20

File tree

11 files changed

+3762
-3537
lines changed

11 files changed

+3762
-3537
lines changed

app/components/UI/ActionView/__snapshots__/index.test.tsx.snap

Lines changed: 142 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,9 @@
33
exports[`ActionView should render correctly 1`] = `
44
<View
55
style={
6-
[
7-
{
8-
"flex": 1,
9-
},
10-
{
11-
"flex": 1,
12-
"flexDirection": "column",
13-
"height": "100%",
14-
},
15-
]
6+
{
7+
"flex": 1,
8+
}
169
}
1710
>
1811
<RCTScrollView
@@ -54,144 +47,170 @@ exports[`ActionView should render correctly 1`] = `
5447
"flex": 1,
5548
},
5649
undefined,
57-
{
58-
"flex": 1,
59-
"flexDirection": "column",
60-
"height": "100%",
61-
},
6250
]
6351
}
6452
update={[Function]}
6553
viewIsInsideTabBar={false}
6654
>
6755
<View>
6856
<View
69-
style={
57+
accessibilityState={
7058
{
71-
"flex": 1,
72-
"flexDirection": "column",
73-
"justifyContent": "space-between",
59+
"busy": undefined,
60+
"checked": undefined,
61+
"disabled": undefined,
62+
"expanded": undefined,
63+
"selected": undefined,
7464
}
7565
}
66+
accessible={true}
67+
focusable={true}
68+
onClick={[Function]}
69+
onResponderGrant={[Function]}
70+
onResponderMove={[Function]}
71+
onResponderRelease={[Function]}
72+
onResponderTerminate={[Function]}
73+
onResponderTerminationRequest={[Function]}
74+
onStartShouldSetResponder={[Function]}
7675
>
77-
<View
78-
accessibilityState={
79-
{
80-
"busy": undefined,
81-
"checked": undefined,
82-
"disabled": undefined,
83-
"expanded": undefined,
84-
"selected": undefined,
85-
}
76+
<Text>
77+
Confirm
78+
</Text>
79+
</View>
80+
<View
81+
style={
82+
{
83+
"flex": 0,
84+
"flexDirection": "row",
85+
"paddingHorizontal": 24,
86+
"paddingVertical": 16,
8687
}
88+
}
89+
>
90+
<TouchableOpacity
91+
accessibilityRole="button"
8792
accessible={true}
88-
focusable={true}
89-
onClick={[Function]}
90-
onResponderGrant={[Function]}
91-
onResponderMove={[Function]}
92-
onResponderRelease={[Function]}
93-
onResponderTerminate={[Function]}
94-
onResponderTerminationRequest={[Function]}
95-
onStartShouldSetResponder={[Function]}
96-
>
97-
<Text>
98-
Confirm
99-
</Text>
100-
</View>
101-
<View
93+
activeOpacity={0.2}
94+
disabled={false}
10295
style={
10396
[
104-
{
105-
"columnGap": 8,
106-
"flexDirection": "row",
107-
"marginBottom": 16,
108-
"paddingHorizontal": 16,
109-
"width": "100%",
110-
},
111-
undefined,
97+
[
98+
{
99+
"borderRadius": 100,
100+
"justifyContent": "center",
101+
"padding": 15,
102+
},
103+
{
104+
"backgroundColor": "#ffffff",
105+
"borderColor": "#686e7d",
106+
"borderWidth": 1,
107+
},
108+
[
109+
{
110+
"flex": 1,
111+
},
112+
{
113+
"marginRight": 8,
114+
},
115+
],
116+
],
117+
null,
112118
]
113119
}
120+
testID=""
114121
>
115-
<TouchableOpacity
116-
accessibilityRole="button"
117-
accessible={true}
118-
activeOpacity={1}
119-
disabled={false}
120-
onPressIn={[Function]}
121-
onPressOut={[Function]}
122+
<Text
122123
style={
123-
{
124-
"alignItems": "center",
125-
"alignSelf": "stretch",
126-
"backgroundColor": "transparent",
127-
"borderColor": "#4459ff",
128-
"borderRadius": 12,
129-
"borderWidth": 1,
130-
"flex": 1,
131-
"flexDirection": "row",
132-
"height": 48,
133-
"justifyContent": "center",
134-
"paddingHorizontal": 16,
135-
}
136-
}
137-
testID=""
138-
>
139-
<Text
140-
accessibilityRole="text"
141-
style={
124+
[
142125
{
143-
"color": "#4459ff",
144-
"fontFamily": "CentraNo1-Medium",
145-
"fontSize": 16,
126+
"color": "#007aff",
127+
"fontSize": 17,
146128
"fontWeight": "500",
147-
"letterSpacing": 0,
148-
"lineHeight": 24,
149-
}
150-
}
151-
>
152-
Cancel
153-
</Text>
154-
</TouchableOpacity>
155-
<TouchableOpacity
156-
accessibilityRole="button"
157-
accessible={true}
158-
activeOpacity={1}
159-
disabled={false}
160-
loading={false}
161-
onPressIn={[Function]}
162-
onPressOut={[Function]}
163-
style={
164-
{
165-
"alignItems": "center",
166-
"alignSelf": "stretch",
167-
"backgroundColor": "#4459ff",
168-
"borderRadius": 12,
169-
"flex": 1,
170-
"flexDirection": "row",
171-
"height": 48,
172-
"justifyContent": "center",
173-
"paddingHorizontal": 16,
174-
}
129+
"textAlign": "center",
130+
},
131+
null,
132+
[
133+
{
134+
"fontFamily": "CentraNo1-Bold",
135+
"fontSize": 14,
136+
"fontWeight": "600",
137+
"textAlign": "center",
138+
},
139+
{
140+
"color": "#686e7d",
141+
},
142+
undefined,
143+
],
144+
null,
145+
]
175146
}
176-
testID=""
177147
>
178-
<Text
179-
accessibilityRole="text"
180-
style={
148+
Cancel
149+
</Text>
150+
</TouchableOpacity>
151+
<TouchableOpacity
152+
accessibilityRole="button"
153+
accessible={true}
154+
activeOpacity={0.2}
155+
disabled={false}
156+
style={
157+
[
158+
[
159+
{
160+
"borderRadius": 100,
161+
"justifyContent": "center",
162+
"padding": 15,
163+
},
181164
{
182-
"color": "#ffffff",
183-
"fontFamily": "CentraNo1-Medium",
184-
"fontSize": 16,
165+
"backgroundColor": "#ffffff",
166+
"borderColor": "#4459ff",
167+
"borderWidth": 1,
168+
},
169+
[
170+
{
171+
"flex": 1,
172+
},
173+
{
174+
"marginLeft": 8,
175+
},
176+
{},
177+
{},
178+
],
179+
],
180+
null,
181+
]
182+
}
183+
testID=""
184+
>
185+
<Text
186+
style={
187+
[
188+
{
189+
"color": "#007aff",
190+
"fontSize": 17,
185191
"fontWeight": "500",
186-
"letterSpacing": 0,
187-
"lineHeight": 24,
188-
}
189-
}
190-
>
191-
Confirm
192-
</Text>
193-
</TouchableOpacity>
194-
</View>
192+
"textAlign": "center",
193+
},
194+
null,
195+
[
196+
{
197+
"fontFamily": "CentraNo1-Bold",
198+
"fontSize": 14,
199+
"fontWeight": "600",
200+
"textAlign": "center",
201+
},
202+
{
203+
"color": "#4459ff",
204+
},
205+
undefined,
206+
],
207+
null,
208+
]
209+
}
210+
>
211+
Confirm
212+
</Text>
213+
</TouchableOpacity>
195214
</View>
196215
</View>
197216
</RCTScrollView>

0 commit comments

Comments
 (0)