From 6aec223a231b95c875c3e8250e4265f0d1229022 Mon Sep 17 00:00:00 2001 From: bang9 Date: Mon, 16 Dec 2024 13:34:56 +0900 Subject: [PATCH] chore: update default visibility status of banner --- src/components/ui/PoweredByBanner.tsx | 3 --- src/utils/index.ts | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/ui/PoweredByBanner.tsx b/src/components/ui/PoweredByBanner.tsx index 61acbe782..baa59f1bf 100644 --- a/src/components/ui/PoweredByBanner.tsx +++ b/src/components/ui/PoweredByBanner.tsx @@ -15,9 +15,6 @@ export function PoweredByBanner() { } return ; - // const inputElement = document.querySelector('.sendbird-message-input-wrapper'); - // - // return inputElement ? ReactDOM.createPortal(, inputElement) : null; } const InnerContainer = styled.div<{ chatBottomBackgroundColor?: string }>` diff --git a/src/utils/index.ts b/src/utils/index.ts index af5650674..48ab55c9f 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -185,7 +185,7 @@ export function hideChatBottomBanner(sdk: SendbirdChat): boolean { return applicationAttributes.includes(REMOVE_POWERED_BY); } - return false; + return true; } export const replaceWithRegex = (