Skip to content

Commit 8ce52fe

Browse files
authored
fix: Updating the logo in App editor to use branding logo instead (#41135)
## Description Updating the logo in App editor to use branding logo instead. Fixes [#41134](#41134) ## Automation /ok-to-test tags="@tag.Sanity" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!CAUTION] > If you modify the content in this section, you are likely to disrupt the CI result for your PR. <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No
1 parent b4efa72 commit 8ce52fe

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/client/src/pages/Editor/AppsmithLink.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { LOGO_TOOLTIP, createMessage } from "ee/constants/messages";
55
import { APPLICATIONS_URL } from "constants/routes";
66
import AppsmithLogo from "assets/images/appsmith_logo_square.png";
77
import history from "utils/history";
8+
import { useSelector } from "react-redux";
9+
import { getOrganizationConfig } from "ee/selectors/organizationSelectors";
810

911
export const StyledLink = styled((props) => {
1012
// we are removing non input related props before passing them in the components
@@ -20,10 +22,13 @@ export const StyledLink = styled((props) => {
2022
min-width: 24px;
2123
width: 24px;
2224
height: 24px;
25+
object-fit: contain;
2326
}
2427
`;
2528

2629
export const AppsmithLink = () => {
30+
const organizationConfig = useSelector(getOrganizationConfig);
31+
2732
const handleOnClick = useCallback(
2833
(e: React.MouseEvent<HTMLAnchorElement>) => {
2934
e.stopPropagation();
@@ -43,7 +48,11 @@ export const AppsmithLink = () => {
4348
<img
4449
alt="Appsmith logo"
4550
className="t--appsmith-logo"
46-
src={AppsmithLogo}
51+
src={
52+
organizationConfig.brandLogoUrl
53+
? organizationConfig.brandLogoUrl
54+
: AppsmithLogo
55+
}
4756
/>
4857
</StyledLink>
4958
</Tooltip>

0 commit comments

Comments
 (0)