Skip to content

Commit

Permalink
chore: update default visibility status of banner
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed Dec 16, 2024
1 parent bc82954 commit 6aec223
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/components/ui/PoweredByBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ export function PoweredByBanner() {
}

return <Banner />;
// const inputElement = document.querySelector('.sendbird-message-input-wrapper');
//
// return inputElement ? ReactDOM.createPortal(<Banner />, inputElement) : null;
}

const InnerContainer = styled.div<{ chatBottomBackgroundColor?: string }>`
Expand Down
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export function hideChatBottomBanner(sdk: SendbirdChat): boolean {
return applicationAttributes.includes(REMOVE_POWERED_BY);
}

return false;
return true;
}

export const replaceWithRegex = <T>(
Expand Down

0 comments on commit 6aec223

Please sign in to comment.