From fd08db069f48930bf44b612aa12d4b7c13614e68 Mon Sep 17 00:00:00 2001 From: prathameshkurunkar7 Date: Fri, 29 Mar 2024 16:09:14 +0530 Subject: [PATCH] fix(mobile): disabled channel settings for open/dm channel + removed log --- .../features/chat-space/ChatInterface.tsx | 13 +++++++------ mobile/src/components/ui/input.tsx | 1 - 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mobile/src/components/features/chat-space/ChatInterface.tsx b/mobile/src/components/features/chat-space/ChatInterface.tsx index 7e350b2b8..1c7b68e8a 100644 --- a/mobile/src/components/features/chat-space/ChatInterface.tsx +++ b/mobile/src/components/features/chat-space/ChatInterface.tsx @@ -99,7 +99,7 @@ export const ChatInterface = ({ channel }: { channel: ChannelListItem | DMChanne return [] }, [channelMembers]) - const checkIsOpenChannel = () => (channel.type !== 'Open' && !channel.is_direct_message) + const checkIsNotOpenChannel = () => (channel.type !== 'Open' && !channel.is_direct_message) return ( <> @@ -107,21 +107,22 @@ export const ChatInterface = ({ channel }: { channel: ChannelListItem | DMChanne
- +
{ - checkIsOpenChannel() ? - : + checkIsNotOpenChannel() ? - + : + + }
{/* TO-DO: Add Other optional buttons here later */}
diff --git a/mobile/src/components/ui/input.tsx b/mobile/src/components/ui/input.tsx index 57d786901..ca5bc028d 100644 --- a/mobile/src/components/ui/input.tsx +++ b/mobile/src/components/ui/input.tsx @@ -8,7 +8,6 @@ export interface InputProps const Input = React.forwardRef( ({ className, type, ...props }, ref) => { - console.log("props", props) return (