Skip to content

Commit 58ef103

Browse files
authored
Merge pull request #41137 from appsmithorg/release
28/07 Daily Promotion
2 parents af49f71 + 8ce52fe commit 58ef103

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)