From 6475360d959855fbf45f48625c9817908ea2fa7f Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Wed, 28 Feb 2024 01:36:53 -0700 Subject: [PATCH] lint fixes --- example/src/LaunchScreen.tsx | 24 ++++++++++-------- example/src/Navigation.tsx | 2 +- example/src/TestScreen.tsx | 3 +-- example/src/tests/test-utils.ts | 44 ++++++++++++++++++--------------- example/src/tests/tests.ts | 2 +- 5 files changed, 41 insertions(+), 34 deletions(-) diff --git a/example/src/LaunchScreen.tsx b/example/src/LaunchScreen.tsx index 214f19ed0..32c04645e 100644 --- a/example/src/LaunchScreen.tsx +++ b/example/src/LaunchScreen.tsx @@ -7,9 +7,9 @@ import * as XMTP from 'xmtp-react-native-sdk' import { useXmtp } from 'xmtp-react-native-sdk' import { NavigationParamList } from './Navigation' +import { TestCategory } from './TestScreen' import { supportedCodecs } from './contentTypes/contentTypes' import { useSavedKeys } from './hooks' -import { TestCategory } from './TestScreen' const appVersion = 'XMTP_RN_EX/0.0.1' @@ -18,7 +18,9 @@ export default function LaunchScreen( this: any, { navigation }: NativeStackScreenProps ) { - const [selectedTest, setSelectedTest] = useState(TestCategory.all) + const [selectedTest, setSelectedTest] = useState( + TestCategory.all + ) const [selectedNetwork, setSelectedNetwork] = useState< 'dev' | 'local' | 'production' >('dev') @@ -67,10 +69,12 @@ export default function LaunchScreen( { key: 1, label: 'false' }, ] - const testOptions = Object.entries(TestCategory).map(([key, value], index) => ({ - key: index, - label: value - })); + const testOptions = Object.entries(TestCategory).map( + ([key, value], index) => ({ + key: index, + label: value, + }) + ) useEffect(() => { ;(async () => { @@ -96,15 +100,15 @@ export default function LaunchScreen( selectTextStyle={styles.modalSelectText} backdropPressToClose initValue={selectedTest} - onChange={(option) => - setSelectedTest(option.label as TestCategory) - } + onChange={(option) => setSelectedTest(option.label as TestCategory)} />