Skip to content

Commit

Permalink
fix sso logo breaking due to antd icons component (#15083)
Browse files Browse the repository at this point in the history
* fix sso logo breaking due to antd icons component

* fix sonar issue

* fix deploy ingestion icon

---------

Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
  • Loading branch information
Ashish8689 and chirag-madlani authored Feb 8, 2024
1 parent 2f455bf commit 73062f7
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ ENTITY_FIELD
| 'testCaseResult'
| 'tests'
| 'pipelineStatus'
| 'dataProducts'
;


Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import './login-button.style.less';

interface LoginButtonProps {
ssoBrandName: string;
ssoBrandLogo?: SvgComponent;
ssoBrandLogo?: string;
onClick?: () => void;
}

Expand All @@ -28,18 +28,26 @@ const LoginButton = ({
ssoBrandLogo,
onClick,
}: LoginButtonProps) => {
const getImageElement = () => (
<img
alt={`${ssoBrandName} Logo`}
height="30px"
src={ssoBrandLogo}
width="30px"
/>
);

const svgIcon = ssoBrandLogo ? (
<Icon
alt={`${ssoBrandName} Logo`}
className="align-middle"
component={ssoBrandLogo}
style={{ fontSize: '30px' }}
component={getImageElement}
/>
) : null;

return (
<Button className="signin-button m-x-auto" icon={svgIcon} onClick={onClick}>
<span className="font-medium text-grey-muted text-xl">
<span className="font-medium text-grey-muted text-xl m-l-0">
{t('label.sign-in-with-sso', { sso: ssoBrandName })}
</span>
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const DeployIngestionLoaderModal = ({
<Icon
className="align-middle"
component={IconCreateIngestion}
style={{ fontSize: '16px' }}
style={{ fontSize: '26px' }}
/>
</Typography.Text>
</Typography.Text>
Expand All @@ -79,7 +79,7 @@ const DeployIngestionLoaderModal = ({
<Icon
className="align-middle"
component={IconDeployIngestion}
style={{ fontSize: '16px' }}
style={{ fontSize: '26px' }}
/>
</Typography.Text>
</Typography.Text>
Expand Down

0 comments on commit 73062f7

Please sign in to comment.