Format
This commit is contained in:
parent
7d8ec187a6
commit
56d9796f64
@ -90,9 +90,7 @@ const Reactions = ({ show, setShow, positive, negative, reposts, zaps }: Reactio
|
||||
likes.map(ev => {
|
||||
return (
|
||||
<div key={ev.id} className="reactions-item">
|
||||
<div className="reaction-icon">
|
||||
{ev.content === "+" ? <Icon name="heart" /> : ev.content}
|
||||
</div>
|
||||
<div className="reaction-icon">{ev.content === "+" ? <Icon name="heart" /> : ev.content}</div>
|
||||
<ProfileImage autoWidth={false} pubkey={ev.pubkey} />
|
||||
</div>
|
||||
);
|
||||
|
@ -2,11 +2,11 @@ type Props = {
|
||||
name: string;
|
||||
size?: number;
|
||||
className?: string;
|
||||
}
|
||||
};
|
||||
|
||||
const Icon = (props: Props) => {
|
||||
const size = props.size || 20;
|
||||
const href = '/icons.svg#' + props.name;
|
||||
const href = "/icons.svg#" + props.name;
|
||||
|
||||
return (
|
||||
<svg width={size} height={size} className={props.className}>
|
||||
|
@ -30,4 +30,4 @@
|
||||
.settings-row svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user