From 31e20a74b2093235be11d6f528c40ac374ab5669 Mon Sep 17 00:00:00 2001 From: Alex Risch Date: Mon, 28 Oct 2024 17:26:40 -0400 Subject: [PATCH] fix: Fixed Buttons for Certain cases Removed deprecated uses Updated props Fixed navigation to pop to top --- .../Chat/ChatPlaceholder/ChatPlaceholder.tsx | 10 ++++---- .../ChatPlaceholder/GroupChatPlaceholder.tsx | 6 ++--- components/Chat/ConsentPopup/ConsentPopup.tsx | 11 ++++---- .../Chat/ConsentPopup/GroupConsentPopup.tsx | 8 +++--- design-system/Button/Button.props.ts | 2 +- i18n/translations/en.ts | 4 +++ screens/NewConversation/NewConversation.tsx | 25 ++++++++----------- screens/Profile.tsx | 7 +++--- 8 files changed, 38 insertions(+), 35 deletions(-) diff --git a/components/Chat/ChatPlaceholder/ChatPlaceholder.tsx b/components/Chat/ChatPlaceholder/ChatPlaceholder.tsx index 6d3edcbbc..7b90ad27b 100644 --- a/components/Chat/ChatPlaceholder/ChatPlaceholder.tsx +++ b/components/Chat/ChatPlaceholder/ChatPlaceholder.tsx @@ -1,3 +1,4 @@ +import { Button } from "@design-system/Button/Button"; import { translate } from "@i18n"; import { actionSheetColors, textPrimaryColor } from "@styles/colors"; import { isGroupTopic } from "@utils/groupUtils/groupId"; @@ -23,7 +24,6 @@ import { getProfile, getProfileData } from "../../../utils/profile"; import { conversationName } from "../../../utils/str"; import { consentToPeersOnProtocol } from "../../../utils/xmtpRN/conversations"; import ActivityIndicator from "../../ActivityIndicator/ActivityIndicator"; -import Button from "../../Button/Button"; import { Recommendation } from "../../Recommendations/Recommendation"; import { showActionSheetWithOptions } from "../../StateHandlers/ActionSheetStateHandler"; @@ -78,9 +78,9 @@ export default function ChatPlaceholder({ messagesCount }: Props) { This user is blocked