Skip to content

Commit

Permalink
update react-native-svg
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Feb 19, 2025
1 parent 6bdf7be commit ef237fc
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 19 deletions.
19 changes: 18 additions & 1 deletion apps/main/app/(app)/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const unstable_settings = {
initialRouteName: '(drawer)',
};

export default function AppLayout() {
const App = () => {
const { site, storeDB, fastStoreDB } = useAppState();
const wpAPIURL = useObservableEagerState(site.wp_api_url$);
const { locale } = useLocale();
Expand Down Expand Up @@ -55,4 +55,21 @@ export default function AppLayout() {
</QueryProvider>
</ExtraDataProvider>
);
};

const RedirectWrapper = ({ children }: { children: React.ReactNode }) => {
const { storeDB } = useAppState();
if (!storeDB) {
// Redirect to the authentication route if storeDB is not set.
return <Redirect href="/(auth)/connect" />;
}
return <>{children}</>;
};

export default function AppLayout() {
return (
<RedirectWrapper>
<App />
</RedirectWrapper>
);
}
2 changes: 1 addition & 1 deletion apps/main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"react-native-reanimated": "3.16.1",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "4.4.0",
"react-native-svg": "15.8.0",
"react-native-svg": "15.11.1",
"react-native-web": "0.19.13",
"react-native-webview": "13.12.5",
"tailwindcss": "3.4.17",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"expo-haptics": "^13.0.1",
"expo-image": "^2.0.5",
"react-native-gesture-handler": "2.20.2",
"react-native-svg": "15.8.0",
"react-native-svg": "15.11.1",
"react-native-webview": "13.12.5",
"tailwindcss": "3.4.17"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"react-native-reanimated": "3.16.1",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "4.4.0",
"react-native-svg": "15.8.0"
"react-native-svg": "15.11.1"
},
"dependencies": {
"@date-fns/tz": "^1.2.0",
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/screens/auth/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const Login = () => {
async (payload) => {
const uuid = get(payload, 'uuid');
const jwt = get(payload, 'jwt');
debugger;

try {
const wpCredentials = await userDB.wp_credentials.findOneFix(uuid).exec();
Expand Down
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ef237fc

Please sign in to comment.