Skip to content

Commit 60828c2

Browse files
committed
tslint fix | update README
1 parent bbb4c3c commit 60828c2

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed
27.5 KB
Loading
10.9 KB
Loading

src/view/elements/buttons.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ export interface Props {
1111
style?: Text.propTypes.style;
1212
}
1313

14-
interface State {}
15-
1614
/**
1715
* Default Button
1816
*/
19-
const ButtonDefault = ({ title, onClick, style }: Props) => (
17+
const BUTTON_DEFAULT = ({ title, onClick, style }: Props) => (
2018
<TouchableOpacity
2119
activeOpacity={GLOBAL.CTA.TouchableOpacity.default}
2220
style={[GLOBAL.CTA.Style.primary, GLOBAL.LAYOUT.shadow, style]}
@@ -26,4 +24,4 @@ const ButtonDefault = ({ title, onClick, style }: Props) => (
2624
</TouchableOpacity>
2725
);
2826

29-
export { ButtonDefault };
27+
export { BUTTON_DEFAULT };

src/view/screens/splash/Component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { View, Image, SafeAreaView } from 'react-native';
33

44
import { tabbedNavigation } from '../../../navigators/navigation';
55
import styles from './styles';
6-
import { ButtonDefault } from '../../elements/buttons';
6+
import { BUTTON_DEFAULT } from '../../elements/buttons';
77

88
export interface Props {}
99

@@ -34,7 +34,7 @@ class Splash extends React.PureComponent<Props, State> {
3434
resizeMode="center"
3535
source={require('../../assets/images/rn_ts.png')}
3636
/>
37-
<ButtonDefault
37+
<BUTTON_DEFAULT
3838
title="Continue To App"
3939
onClick={this.navigateToHome}
4040
/>

0 commit comments

Comments
 (0)