Footer: Fixes layout issue in footer (#30443)

* Footer: Fixes missing icon issue causing footer layout issue

* Another fix
This commit is contained in:
Torkel Ödegaard 2021-01-21 13:01:20 +01:00 committed by GitHub
parent 59ef36812e
commit 5c8d662bfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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>> = {

View File

@ -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>
))}