Refactor to use Redux
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -3,7 +3,9 @@ import { Button, Text } from 'react-native-paper';
|
||||
import { PaddedView } from '../components';
|
||||
import styles from '../styles';
|
||||
|
||||
const Welcome = (properties: { selectStorageLocation: () => void }) => {
|
||||
const Welcome = (properties: {
|
||||
selectStorageLocation: () => Promise<void>;
|
||||
}) => {
|
||||
return (
|
||||
<PaddedView centered>
|
||||
<Text
|
||||
@@ -11,7 +13,10 @@ const Welcome = (properties: { selectStorageLocation: () => void }) => {
|
||||
style={[styles.bigMarginBottom, styles.centerText]}>
|
||||
Welcome to Terminally Online!
|
||||
</Text>
|
||||
<Button mode="contained" onPress={properties.selectStorageLocation} style={styles.extremeMarginBottom}>
|
||||
<Button
|
||||
mode="contained"
|
||||
onPress={properties.selectStorageLocation}
|
||||
style={styles.extremeMarginBottom}>
|
||||
Select Storage Location
|
||||
</Button>
|
||||
</PaddedView>
|
||||
|
Reference in New Issue
Block a user