Skip to content

Commit 5af025a

Browse files
committed
updating the appsmith logo in app editor to use branding logo
1 parent b4efa72 commit 5af025a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 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
@@ -24,6 +26,8 @@ export const StyledLink = styled((props) => {
2426
`;
2527

2628
export const AppsmithLink = () => {
29+
const organizationConfig = useSelector(getOrganizationConfig);
30+
2731
const handleOnClick = useCallback(
2832
(e: React.MouseEvent<HTMLAnchorElement>) => {
2933
e.stopPropagation();
@@ -43,7 +47,11 @@ export const AppsmithLink = () => {
4347
<img
4448
alt="Appsmith logo"
4549
className="t--appsmith-logo"
46-
src={AppsmithLogo}
50+
src={
51+
organizationConfig.brandLogoUrl
52+
? organizationConfig.brandLogoUrl
53+
: AppsmithLogo
54+
}
4755
/>
4856
</StyledLink>
4957
</Tooltip>

0 commit comments

Comments
 (0)