diff --git a/src/components/Container.tsx b/src/components/Container.tsx new file mode 100644 index 0000000..7ba867b --- /dev/null +++ b/src/components/Container.tsx @@ -0,0 +1,16 @@ +import { Box } from "@mui/material"; +import React, { PropsWithChildren } from "react"; + +export const Container: React.FC = ({ children }) => ( + + {children} + +); diff --git a/src/screens/HomeScreen.tsx b/src/screens/HomeScreen.tsx index 6105dec..4fb3f1e 100644 --- a/src/screens/HomeScreen.tsx +++ b/src/screens/HomeScreen.tsx @@ -1,7 +1,7 @@ import React, { useCallback, useEffect, useState } from "react"; import { View, ActivityIndicator, Image } from "react-native"; import { Text } from "react-native-paper"; -import { Box, Button, Divider, Portal, Snackbar } from "@mui/material"; +import { Button, Divider, Portal, Snackbar } from "@mui/material"; import { NativeStackNavigationProp } from "@react-navigation/native-stack"; import { useNavigation } from "@react-navigation/native"; @@ -19,6 +19,7 @@ import { NetworksDataState, StackParamsList } from "../types"; import { useNetworks } from "../context/NetworksContext"; import ImportWalletDialog from "../components/ImportWalletDialog"; import { MnemonicDialog } from "../components/MnemonicDialog"; +import { Container } from "../components/Container"; const WCLogo = () => { return ( @@ -148,7 +149,7 @@ const HomeScreen = () => { return ( - + {!isAccountsFetched ? ( Loading... @@ -203,17 +204,17 @@ const HomeScreen = () => { hideDialog={hideResetDialog} onConfirm={confirmResetWallet} /> - - setToastVisible(false)} - anchorOrigin={{ horizontal: "center", vertical: "bottom" }} - ContentProps={{ style: { backgroundColor: "red", color: "white" } }} - /> - - + + + setToastVisible(false)} + anchorOrigin={{ horizontal: "center", vertical: "bottom" }} + ContentProps={{ style: { backgroundColor: "red", color: "white" } }} + /> + ); };