kopia lustrzana https://github.com/bugout-dev/moonstream
remove bugout logo from customIcon
rodzic
5511e28125
commit
09a3fd381e
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue