Skip to content

Commit

Permalink
better icons, rephrasing the pane with list of events, and some eslin…
Browse files Browse the repository at this point in the history
…t "fix"
  • Loading branch information
K committed Oct 16, 2024
1 parent b7fa95c commit bcc5ac7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 3 additions & 6 deletions nr-app/app/(tabs)/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ export default function TabLayout() {
options={{
title: "Map",
tabBarIcon: ({ color, focused }) => (
<TabBarIcon
name={focused ? "home" : "home-outline"}
color={color}
/>
<TabBarIcon name={focused ? "map" : "map-outline"} color={color} />
),
}}
/>
Expand All @@ -33,7 +30,7 @@ export default function TabLayout() {
title: "List",
tabBarIcon: ({ color, focused }) => (
<TabBarIcon
name={focused ? "code-slash" : "code-slash-outline"}
name={focused ? "list" : "list-outline"}
color={color}
/>
),
Expand All @@ -45,7 +42,7 @@ export default function TabLayout() {
title: "Settings",
tabBarIcon: ({ color, focused }) => (
<TabBarIcon
name={focused ? "code-slash" : "code-slash-outline"}
name={focused ? "settings" : "settings-outline"}
color={color}
/>
),
Expand Down
7 changes: 3 additions & 4 deletions nr-app/app/(tabs)/explore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ export default function TabTwoScreen() {
}
>
<ThemedView style={styles.titleContainer}>
<ThemedText type="title">Testing</ThemedText>
<ThemedText type="title">Stream of notes</ThemedText>
</ThemedView>
<ThemedText>This is a test screen to load some nostr events</ThemedText>
<View>
<Button
title="Load 10 events"
title="Load 10 notes"
onPress={async () => {
const { mnemonic } = generateSeedWords();
const account = accountFromSeedWords({ mnemonic });
Expand Down Expand Up @@ -68,7 +67,7 @@ export default function TabTwoScreen() {
/>
</View>
<View>
<Text>We have a total of {events.length} events.</Text>
<Text>We have a total of {events.length} notes.</Text>
{events.map((event) => (
<View key={event.event.id}>
<Text style={{ color: "#008800" }}>{event.event.id}</Text>
Expand Down

0 comments on commit bcc5ac7

Please sign in to comment.