final test

This commit is contained in:
Hailey
2024-02-21 13:16:06 -08:00
parent f46375ee34
commit 6580c5c097
4 changed files with 31 additions and 1 deletions
+3
View File
@@ -2,6 +2,9 @@
name: Build and Submit iOS
on:
push:
branches:
- hailey/use-eas-version-code
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
+3 -1
View File
@@ -3,7 +3,7 @@
* avoid future conflicts and/or circular deps
*/
import {Platform} from 'react-native'
import {Alert, Platform} from 'react-native'
import app from 'react-native-version-number'
import * as info from 'expo-updates'
import {init} from 'sentry-expo'
@@ -45,3 +45,5 @@ init({
dist,
release,
})
Alert.alert(dist)
@@ -88,6 +88,7 @@ export function useExternalLinkFetch({
})
},
err => {
console.log('errored')
logger.error('Failed to fetch list for embedding', {message: err})
setExtLink(undefined)
},
+24
View File
@@ -9,6 +9,7 @@ import {
TouchableOpacity,
View,
ViewStyle,
Alert,
} from 'react-native'
import {useFocusEffect, useNavigation} from '@react-navigation/native'
import {
@@ -68,6 +69,7 @@ import {SelectableBtn} from 'view/com/util/forms/SelectableBtn'
import {AccountDropdownBtn} from 'view/com/util/AccountDropdownBtn'
import {SimpleViewHeader} from 'view/com/util/SimpleViewHeader'
import {ExportCarDialog} from './ExportCarDialog'
import {logger} from '#/logger'
function SettingsAccountCard({account}: {account: SessionAccount}) {
const pal = usePalette('default')
@@ -628,6 +630,28 @@ export function SettingsScreen({}: Props) {
<View style={styles.spacer20} />
<TouchableOpacity
testID="moderationBtn"
style={[
styles.linkCard,
pal.view,
isSwitchingAccounts && styles.dimmed,
]}
onPress={() => {
Alert.alert('throwing')
logger.error('Throw something here')
throw new Error()
}}
accessibilityRole="button">
<View style={[styles.iconContainer, pal.btn]}>
<HandIcon style={pal.text} size={18} strokeWidth={6} />
</View>
<Text type="lg" style={pal.text}>
<Trans>ThorwSample</Trans>
</Text>
</TouchableOpacity>
<Text type="xl-bold" style={[pal.text, styles.heading]}>
<Trans>Privacy</Trans>
</Text>