Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Fix some linter warnings (#116)
Browse files Browse the repository at this point in the history
added explicit return types
simplified toggle function

Co-authored-by: haveyaseen <[email protected]>
  • Loading branch information
Dionysusnu and haveyaseen authored Apr 21, 2020
1 parent e3335f3 commit 684eaef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion App/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const Header: React.FC<HeaderProps> = ({
style={styles.questionMark}
name="help-circle"
size={24}
onPress={() => navigate('Onboarding')}
onPress={(): void => navigate('Onboarding')}
/>
) : null}
</View>
Expand Down
2 changes: 1 addition & 1 deletion App/screens/HomeBluetooth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export const HomeBluetooth: React.FC<{
showHelp={true}
navigationButton={{
title: 'new Home',
fn: () => {
fn: (): void => {
navigation.navigate('Home');
},
}}
Expand Down
4 changes: 2 additions & 2 deletions App/screens/IDMatch.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState} from 'react';
import React from 'react';
import {View, Text, Button, StyleSheet} from 'react-native';
import Icon from 'react-native-vector-icons/Feather';
import {StackNavigationProp} from '@react-navigation/stack';
Expand Down Expand Up @@ -218,7 +218,7 @@ export const IDMatch: React.FC<{
</Text>
<BasicButton
title="What to do next?"
onPress={() => navigation.navigate('HomeBluetooth')}
onPress={(): void => navigation.navigate('HomeBluetooth')}
/>
</View>
</View>
Expand Down

0 comments on commit 684eaef

Please sign in to comment.