From 814c857457fc7d8cfd22f84bbbd9c5602f3e120c Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Fri, 20 Jan 2023 15:20:07 +0100 Subject: [PATCH] use icons from @status-im --- apps/vite/src/components/topbar.tsx | 8 +-- packages/components/src/author/author.tsx | 57 ++------------------- packages/components/src/sidebar/sidebar.tsx | 5 +- 3 files changed, 10 insertions(+), 60 deletions(-) diff --git a/apps/vite/src/components/topbar.tsx b/apps/vite/src/components/topbar.tsx index dc432bdd..2edca5ba 100644 --- a/apps/vite/src/components/topbar.tsx +++ b/apps/vite/src/components/topbar.tsx @@ -1,5 +1,5 @@ import { Divider, IconButton, Paragraph } from '@status-im/components' -import { LockedIcon, MembersIcon, OptionsIcon } from '@status-im/icons' +import { Locked, Members, Options } from '@status-im/icons/20' import { Stack } from '@tamagui/core' type Props = { @@ -24,7 +24,7 @@ export const Topbar = (props: Props) => { # random - + Share random funny stuff with the community. Play nice. @@ -33,11 +33,11 @@ export const Topbar = (props: Props) => { } + icon={} selected={membersVisisble} onPress={onMembersPress} /> - } /> + } /> ) diff --git a/packages/components/src/author/author.tsx b/packages/components/src/author/author.tsx index daff4c4b..92406a73 100644 --- a/packages/components/src/author/author.tsx +++ b/packages/components/src/author/author.tsx @@ -1,3 +1,4 @@ +import { Contact, Untrustworthy, Verified } from '@status-im/icons/12' import { XStack } from 'tamagui' import { Paragraph } from '../typography' @@ -20,59 +21,9 @@ const Author = (props: Props) => { {name} - {status === 'contact' && ( - - - - - - - )} - {status === 'verified' && ( - - - - - )} - {status === 'untrustworthy' && ( - - - - - - )} + {status === 'contact' && } + {status === 'verified' && } + {status === 'untrustworthy' && } {address && ( diff --git a/packages/components/src/sidebar/sidebar.tsx b/packages/components/src/sidebar/sidebar.tsx index 3ca6ff91..2a6cfa23 100644 --- a/packages/components/src/sidebar/sidebar.tsx +++ b/packages/components/src/sidebar/sidebar.tsx @@ -1,6 +1,6 @@ import { useState } from 'react' -import { GroupIcon } from '@status-im/icons' +import { Group } from '@status-im/icons/16' import { Stack } from '@tamagui/core' import { Accordion } from '../accordion/accordion' @@ -87,7 +87,7 @@ const Sidebar = (props: Props) => { {name} {description} - + {membersCount} @@ -123,7 +123,6 @@ const Sidebar = (props: Props) => { ))} - {/* */} )