mattermost-mobile/app/components/loading_error/__snapshots__/index.test.tsx.snap
Daniel Espino García 2ad6fec90f
Unify buttons (#8865)
* Unity buttons

* Fix texts and use defineMessages

* Update snapshots

* Fix disabled style
2025-05-30 15:59:15 +02:00

178 lines
3.6 KiB
Text

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Loading Error should match snapshot 1`] = `
<View
style={
{
"alignItems": "center",
"flex": 1,
"justifyContent": "center",
"padding": 20,
}
}
>
<View
style={
{
"alignItems": "center",
"backgroundColor": "rgba(255,255,255,0.08)",
"borderRadius": 60,
"height": 120,
"justifyContent": "center",
"width": 120,
}
}
>
<Icon
name="alert-circle-outline"
style={
{
"color": "rgba(255,255,255,0.48)",
"fontSize": 72,
"lineHeight": 72,
}
}
/>
</View>
<Text
style={
[
{
"fontFamily": "Metropolis-SemiBold",
"fontSize": 20,
"fontWeight": "600",
"lineHeight": 28,
},
{
"color": "#ffffff",
"marginTop": 20,
"textAlign": "center",
},
]
}
>
Error title
</Text>
<Text
style={
[
{
"fontFamily": "OpenSans",
"fontSize": 16,
"fontWeight": "400",
"lineHeight": 24,
},
{
"color": "#ffffff",
"marginTop": 4,
"textAlign": "center",
},
]
}
>
Error description
</Text>
<View
style={
{
"marginTop": 24,
}
}
>
<View
style={
[
{
"overflow": "hidden",
},
{
"borderRadius": 2,
},
undefined,
false,
]
}
testID="RNE_BUTTON_WRAPPER"
>
<View
accessibilityRole="button"
accessibilityState={
{
"busy": false,
"checked": undefined,
"disabled": false,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
collapsable={false}
focusable={true}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
{
"opacity": 1,
}
}
>
<View
style={
{
"alignItems": "center",
"backgroundColor": "#1c58d9",
"borderColor": "#2089dc",
"borderRadius": 4,
"borderWidth": 0,
"flexDirection": "row",
"justifyContent": "center",
"padding": 8,
"paddingHorizontal": 24,
"paddingVertical": 12,
}
}
>
<View
style={
{
"alignItems": "center",
"flexDirection": "row",
"gap": 7,
}
}
testID="undefined-text-container"
>
<Text
numberOfLines={1}
style={
{
"color": "#ffffff",
"fontFamily": "OpenSans-SemiBold",
"fontSize": 16,
"fontWeight": "600",
"lineHeight": 24,
}
}
>
Retry
</Text>
</View>
</View>
</View>
</View>
</View>
</View>
`;