Commit 5c8d662b by Torkel Ödegaard Committed by GitHub

Footer: Fixes layout issue in footer (#30443)

* Footer: Fixes missing icon issue causing footer layout issue

* Another fix
parent 59ef3681
......@@ -65,8 +65,8 @@ const InterpolationStepAfter: FC<SvgProps> = ({ size, ...rest }) => {
);
};
const IconNotFound: FC<SvgProps> = ({ ...rest }) => {
return <svg {...rest} />;
const IconNotFound: FC<SvgProps> = ({ size, ...rest }) => {
return <svg width={size} height={size} {...rest} />;
};
export const customIcons: Record<string, ComponentType<SvgProps>> = {
......
......@@ -75,7 +75,7 @@ export const Footer: FC = React.memo(() => {
{links.map((link) => (
<li key={link.text}>
<a href={link.url} target={link.target} rel="noopener">
<Icon name={link.icon as IconName} /> {link.text}
{link.icon && <Icon name={link.icon as IconName} />} {link.text}
</a>
</li>
))}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment