diff --git a/packages/mobile-app/app/(tabs)/transact.tsx b/packages/mobile-app/app/(tabs)/transact.tsx index e5972c6..b8c7b20 100644 --- a/packages/mobile-app/app/(tabs)/transact.tsx +++ b/packages/mobile-app/app/(tabs)/transact.tsx @@ -1,5 +1,5 @@ import { View, Text } from "react-native"; -import { useFacade } from "../../data"; +import { useFacade } from "../../data/facades"; import { Button } from "@ironfish/ui"; import { useQueryClient } from "@tanstack/react-query"; diff --git a/packages/mobile-app/app/_layout.tsx b/packages/mobile-app/app/_layout.tsx index 2936a72..ebd632f 100644 --- a/packages/mobile-app/app/_layout.tsx +++ b/packages/mobile-app/app/_layout.tsx @@ -2,7 +2,7 @@ import { Stack } from "expo-router"; import { Text } from 'react-native'; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; -import { FacadeProvider, useFacade } from "../data"; +import { FacadeProvider, useFacade } from "../data/facades"; import React, { useEffect } from "react"; const queryClient = new QueryClient(); diff --git a/packages/mobile-app/data/facades/README.md b/packages/mobile-app/data/facades/README.md new file mode 100644 index 0000000..e2cfb3f --- /dev/null +++ b/packages/mobile-app/data/facades/README.md @@ -0,0 +1,3 @@ +# facades + +Facades use the `data-facade` package to provide a `tanstack/react-query` interface between the wallet code in the `data` folder and the Expo frontend in the `app` folder. \ No newline at end of file diff --git a/packages/mobile-app/data/accounts/demoHandlers.ts b/packages/mobile-app/data/facades/accounts/demoHandlers.ts similarity index 100% rename from packages/mobile-app/data/accounts/demoHandlers.ts rename to packages/mobile-app/data/facades/accounts/demoHandlers.ts diff --git a/packages/mobile-app/data/accounts/handlers.ts b/packages/mobile-app/data/facades/accounts/handlers.ts similarity index 100% rename from packages/mobile-app/data/accounts/handlers.ts rename to packages/mobile-app/data/facades/accounts/handlers.ts diff --git a/packages/mobile-app/data/accounts/types.ts b/packages/mobile-app/data/facades/accounts/types.ts similarity index 100% rename from packages/mobile-app/data/accounts/types.ts rename to packages/mobile-app/data/facades/accounts/types.ts diff --git a/packages/mobile-app/data/app/demoHandlers.ts b/packages/mobile-app/data/facades/app/demoHandlers.ts similarity index 100% rename from packages/mobile-app/data/app/demoHandlers.ts rename to packages/mobile-app/data/facades/app/demoHandlers.ts diff --git a/packages/mobile-app/data/app/handlers.ts b/packages/mobile-app/data/facades/app/handlers.ts similarity index 100% rename from packages/mobile-app/data/app/handlers.ts rename to packages/mobile-app/data/facades/app/handlers.ts diff --git a/packages/mobile-app/data/app/types.ts b/packages/mobile-app/data/facades/app/types.ts similarity index 100% rename from packages/mobile-app/data/app/types.ts rename to packages/mobile-app/data/facades/app/types.ts diff --git a/packages/mobile-app/data/index.ts b/packages/mobile-app/data/facades/index.ts similarity index 100% rename from packages/mobile-app/data/index.ts rename to packages/mobile-app/data/facades/index.ts diff --git a/packages/mobile-app/wallet/db.ts b/packages/mobile-app/data/wallet/db.ts similarity index 100% rename from packages/mobile-app/wallet/db.ts rename to packages/mobile-app/data/wallet/db.ts diff --git a/packages/mobile-app/wallet/index.ts b/packages/mobile-app/data/wallet/index.ts similarity index 100% rename from packages/mobile-app/wallet/index.ts rename to packages/mobile-app/data/wallet/index.ts