-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
24 lines (21 loc) · 902 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { PaymentNfc } from "./features/payments/components/payment-nfc";
import { useState } from "react";
import { LocationState, Navbar } from "./components/navbar";
import { View } from "react-native";
import Investments from "./features/investments/investments";
import AddMoney from "./features/add-funds/add-money";
const queryClient = new QueryClient();
export default function App() {
const [location, setLocation] = useState<LocationState>("charge");
return (
<QueryClientProvider client={queryClient}>
<View style={{ flex: 1 }}>
{location === "charge" && <PaymentNfc />}
{location === "add-balance" && <AddMoney />}
{location === "investments" && <Investments />}
<Navbar selected={location} setSelected={setLocation} />
</View>
</QueryClientProvider>
);
}