Footer: Fixes layout issue in footer (#30443)

* Footer: Fixes missing icon issue causing footer layout issue

* Another fix
v6.3.0
Torkel Ödegaard 5 years ago committed by GitHub
parent 59ef36812e
commit 5c8d662bfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/grafana-ui/src/components/Icon/custom/index.tsx
  2. 2
      public/app/core/components/Footer/Footer.tsx

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

Loading…
Cancel
Save