Footer: Fixes layout issue in footer (#30443) (#30494)

* Footer: Fixes missing icon issue causing footer layout issue

* Another fix

(cherry picked from commit 5c8d662bfc)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
This commit is contained in:
Grot (@grafanabot)
2021-01-26 13:47:45 +01:00
committed by GitHub
co-authored by Torkel Ödegaard
parent 3875ae2319
commit aadbb1ebf4
2 changed files with 3 additions and 3 deletions
@@ -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>> = {
+1 -1
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>
))}