Skip to content

Commit

Permalink
Removed unnecessary fragments and props
Browse files Browse the repository at this point in the history
  • Loading branch information
cgjohn committed Dec 5, 2024
1 parent 81b9ed5 commit 3471b82
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 33 deletions.
9 changes: 3 additions & 6 deletions packages/mobile-app/app/(tabs)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { useEffect, useState } from "react";
import { LinkButton } from "../../components/LinkButton";
import { useQueries } from "@tanstack/react-query";
import { Asset } from "../../data/facades/chain/types";
import { Stack } from "expo-router";

export default function Balances() {
const facade = useFacade();
Expand Down Expand Up @@ -88,11 +87,9 @@ export default function Balances() {

if (getAccountResult.data === null) {
return (
<>
<View style={styles.container}>
<LinkButton title="Onboarding" href="/onboarding/" />
</View>
</>
<View style={styles.container}>
<LinkButton title="Onboarding" href="/onboarding/" />
</View>
);
}

Expand Down
49 changes: 23 additions & 26 deletions packages/mobile-app/app/onboarding/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,29 @@ import { Stack } from "expo-router";

export default function OnboardingLayout() {
return (
<>
<Stack
screenOptions={{
headerBackTitleVisible: false,
<Stack
screenOptions={{
headerBackTitleVisible: false,
}}
>
<Stack.Screen
name="index"
options={{
headerShown: false,
}}
>
<Stack.Screen
name="index"
options={{
headerShown: false,
title: "Create your account",
}}
/>
<Stack.Screen
name="create"
options={{
title: "Security",
}}
/>
<Stack.Screen
name="name-account"
options={{
title: "Name your account",
}}
/>
</Stack>
</>
/>
<Stack.Screen
name="create"
options={{
title: "Security",
}}
/>
<Stack.Screen
name="name-account"
options={{
title: "Name your account",
}}
/>
</Stack>
);
}
2 changes: 1 addition & 1 deletion packages/mobile-app/app/onboarding/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function Onboarding() {
edges={["top"]}
style={{ flex: 1, backgroundColor: "#FFF4E0" }}
>
<View style={{ flex: 1, paddingHorizontal: 24, paddingVertical: 16 }}>
<View style={{ flex: 1, padding: 24 }}>
<LinearGradient
colors={["#FFF4E0", "#DE83F0"]}
locations={[0, 1]}
Expand Down

0 comments on commit 3471b82

Please sign in to comment.