remove bugout logo from customIcon

pull/47/head
Tim Pechersky 2021-08-03 19:40:27 +08:00
rodzic 5511e28125
commit 09a3fd381e
1 zmienionych plików z 15 dodań i 9 usunięć

Wyświetl plik

@ -1,14 +1,20 @@
// TODO: rename to icon, gigignored from parent .gitignore file
import React from "react";
const Icon = ({ className, style, icon, width, height, onClick }) => (
<img
onClick={onClick ? onClick : () => {}}
style={{ style, width: width, height: height }}
src={`/icons/${icon}.svg`}
alt={`icon-${icon}-${height}`}
className={className}
/>
);
const Icon = ({ className, style, icon, width, height, onClick }) => {
const iconSrc =
icon === "logo"
? "https://s3.amazonaws.com/static.simiotics.com/moonstream/assets/White+logo.svg"
: `/icons/${icon}.svg`;
return (
<img
onClick={onClick ? onClick : () => {}}
style={{ style, width: width, height: height }}
src={iconSrc}
alt={`icon-${icon}-${height}`}
className={className}
/>
);
};
export default Icon;