File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed 
app/client/src/pages/Editor Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import { LOGO_TOOLTIP, createMessage } from "ee/constants/messages";
55import  {  APPLICATIONS_URL  }  from  "constants/routes" ; 
66import  AppsmithLogo  from  "assets/images/appsmith_logo_square.png" ; 
77import  history  from  "utils/history" ; 
8+ import  {  useSelector  }  from  "react-redux" ; 
9+ import  {  getOrganizationConfig  }  from  "ee/selectors/organizationSelectors" ; 
810
911export  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
2629export  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 > 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments