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 ( - + =10.0.0" }, @@ -9793,9 +9793,9 @@ } }, "node_modules/metro/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "engines": { "node": ">=8.3.0" }, @@ -10989,9 +10989,9 @@ } }, "node_modules/react-devtools-core/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "engines": { "node": ">=8.3.0" }, @@ -13332,9 +13332,9 @@ } }, "node_modules/ws": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz", - "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==", + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.3.tgz", + "integrity": "sha512-jmTjYU0j60B+vHey6TfR3Z7RD61z/hmxBS3VMSGIrroOWXQEneK1zNuotOUrGyBHQj0yrpsLHPWtigEFd13ndA==", "dependencies": { "async-limiter": "~1.0.0" } diff --git a/mobile/package.json b/mobile/package.json index 15f4169..c5b1791 100644 --- a/mobile/package.json +++ b/mobile/package.json @@ -22,10 +22,8 @@ "base-64": "^1.0.0", "date-fns": "^3.6.0", "expo": "~51.0.8", - "expo-application": "~5.9.1", "expo-clipboard": "~6.0.3", "expo-constants": "~16.0.2", - "expo-linear-gradient": "~13.0.2", "expo-linking": "~6.3.1", "expo-router": "~3.5.14", "expo-splash-screen": "~0.27.4", @@ -46,7 +44,9 @@ "react-redux": "^9.1.0", "styled-components": "^6.1.8", "text-encoding": "^0.7.0", - "web-streams-polyfill": "^3.3.2" + "web-streams-polyfill": "^3.3.2", + "expo-application": "~5.9.1", + "expo-linear-gradient": "~13.0.2" }, "devDependencies": { "@babel/core": "^7.20.0",