Skip to content

Commit 3c8f9f8

Browse files
committed
fix: delete trigger error button
1 parent f14b4d4 commit 3c8f9f8

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

src/app/components/sheets/Settings.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import SegmentedControl from '@react-native-segmented-control/segmented-control'
66
import React, { memo, useEffect, useState } from 'react';
77
import {
88
Appearance,
9-
Button,
109
Platform,
1110
Text,
1211
TouchableOpacity,
13-
View,
12+
View
1413
} from 'react-native';
1514

1615
import { ASQueryKey } from '@lib/queries/structure/aggie_spirit';
@@ -21,7 +20,6 @@ import {
2120
} from '@lib/queries/structure/storage';
2221
import useAppStore from '@lib/state/app_state';
2322
import { useTheme } from '@lib/state/utils';
24-
import { appLogger } from '@lib/utils/logger';
2523
import { useQueryClient } from '@tanstack/react-query';
2624
import getTheme from 'src/app/theme';
2725
import { Sheets, useSheetController } from '../providers/sheet-controller';
@@ -143,16 +141,6 @@ const Settings: React.FC<SheetProps> = ({ sheetRef }) => {
143141
: undefined
144142
}
145143
/>
146-
147-
<Button
148-
title="Trigger error"
149-
onPress={() => {
150-
const data = { answer: 42 };
151-
// @ts-expect-error
152-
const extracted = data.doesntexist.more;
153-
appLogger.d(`The answer is ${extracted}`);
154-
}}
155-
/>
156144
</View>
157145
</BottomSheetScrollView>
158146
</BaseSheet>

0 commit comments

Comments
 (0)