From 0fa7d9a17928217668266d6d02ddd0c315d5a703 Mon Sep 17 00:00:00 2001
From: Iuri <689440+iuricmp@users.noreply.github.com>
Date: Wed, 19 Jun 2024 09:58:45 +0100
Subject: [PATCH] chore: new gnod svg (#100)
* chore: npm audit fix
* fix: remove duplicated code
* chore: new gnod svg
---------
Signed-off-by: Iuri Pereira <689440+iuricmp@users.noreply.github.com>
---
mobile/app/index.tsx | 3 ---
mobile/components/feed/gnod-label.tsx | 7 ++++---
mobile/components/feed/replies-label.tsx | 6 +++++-
mobile/components/icons/Gnod.tsx | 23 +++++++++++++++--------
mobile/components/icons/Gnoded.tsx | 20 ++++++++++++--------
mobile/package-lock.json | 24 ++++++++++++------------
mobile/package.json | 6 +++---
7 files changed, 51 insertions(+), 38 deletions(-)
diff --git a/mobile/app/index.tsx b/mobile/app/index.tsx
index 8cb0a5c..018d9ce 100644
--- a/mobile/app/index.tsx
+++ b/mobile/app/index.tsx
@@ -98,9 +98,6 @@ export default function Root() {
<>
Please, select one of the existing accounts to start:
-
-
-
>
)}
diff --git a/mobile/components/feed/gnod-label.tsx b/mobile/components/feed/gnod-label.tsx
index c1ada95..3e65315 100644
--- a/mobile/components/feed/gnod-label.tsx
+++ b/mobile/components/feed/gnod-label.tsx
@@ -2,6 +2,7 @@ import { StyleProp, TextStyle, TouchableOpacity } from "react-native";
import { colors } from "@gno/styles/colors";
import { MaterialCommunityIcons } from "@expo/vector-icons";
import Text from "../text";
+import Icons from "../icons";
interface Props {
gnodsCount: number;
@@ -11,9 +12,9 @@ interface Props {
function GnodLabel({ gnodsCount, style, onPress }: Props) {
return (
-
-
- {gnodsCount} Gnods
+
+ {gnodsCount > 0 ? : }
+ {gnodsCount} Gnods
);
}
diff --git a/mobile/components/feed/replies-label.tsx b/mobile/components/feed/replies-label.tsx
index e0f15f8..82a1132 100644
--- a/mobile/components/feed/replies-label.tsx
+++ b/mobile/components/feed/replies-label.tsx
@@ -11,7 +11,11 @@ interface Props {
function RepliesLabel({ replyCount, style }: Props) {
return (
-
+ 0 ? "message-reply" : "message-reply-outline"}
+ size={16}
+ color={colors.grayscale[200]}
+ />
{replyCount} replies
);
diff --git a/mobile/components/icons/Gnod.tsx b/mobile/components/icons/Gnod.tsx
index 88485e9..520b2e2 100644
--- a/mobile/components/icons/Gnod.tsx
+++ b/mobile/components/icons/Gnod.tsx
@@ -5,24 +5,31 @@ function Gnod(props: SvgProps) {
return (