PluginProbe
Extendify / trunk
Extendify vtrunk
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/AutoLaunch/components/Logo.jsx +9 -7 3.1.1 → trunk View file →
@@ -1,23 +1,25 @@
1 1 import { extendify } from '@auto-launch/icons';
2 2 import { Icon } from '@wordpress/icons';
3 3
4 -export const Logo = () => {
5 - if (window.extSharedData?.partnerLogo) {
4 +export const Logo = ({ src, name }) => {
5 + if (src) {
6 6 return (
7 - <div className="flex h-10 max-w-52 items-center overflow-hidden md:max-w-72">
7 + <div className="flex h-ui-logo max-w-52 items-center overflow-hidden rounded-ui-logo md:max-w-72">
8 8 <img
9 - className="h-full w-auto max-w-full object-contain"
10 - src={window.extSharedData.partnerLogo}
11 - alt={window.extSharedData?.partnerName ?? ''}
9 + className="h-full w-auto max-w-full rounded-ui-logo object-contain"
10 + src={src}
11 + alt={name ?? ''}
12 12 />
13 13 </div>
14 14 );
15 15 }
16 +
17 + // Drawn in currentColor, so it stays legible on any page color a partner picks.
16 18 return (
17 19 <Icon
18 20 width={undefined}
19 21 icon={extendify}
20 - className="h-8 w-auto text-banner-text"
22 + className="h-ui-mark w-auto text-ui-page-text"
21 23 />
22 24 );
23 25 };