Skip to content

Commit

Permalink
Merge pull request #1768 from headlamp-k8s/logo-fix
Browse files Browse the repository at this point in the history
plugins/examples/change-logo: Use sx prop in logo
  • Loading branch information
joaquimrocha authored Mar 5, 2024
2 parents ddd07a2 + 1315651 commit 63bfbef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/examples/change-logo/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,19 @@ import Settings, { store } from './settings';
* it's easier to make it look good with light and dark themes.
*/
function SimpleLogo(props: AppLogoProps) {
const { logoType, className } = props;
const { logoType, className, sx } = props;

const useConf = store.useConfig();
const config = useConf();

return config?.url ? (
<Avatar src={config?.url} alt="logo" className={className} />
<Avatar src={config?.url} alt="logo" className={className} sx={sx} />
) : (
<SvgIcon
className={className}
component={logoType === 'large' ? LogoWithTextLight : LogoLight}
viewBox="0 0 auto 32"
sx={sx}
/>
);
}
Expand Down

0 comments on commit 63bfbef

Please sign in to comment.