forked from Kieran/snort
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 => {
|
likes.map(ev => {
|
||||||
return (
|
return (
|
||||||
<div key={ev.id} className="reactions-item">
|
<div key={ev.id} className="reactions-item">
|
||||||
<div className="reaction-icon">
|
<div className="reaction-icon">{ev.content === "+" ? <Icon name="heart" /> : ev.content}</div>
|
||||||
{ev.content === "+" ? <Icon name="heart" /> : ev.content}
|
|
||||||
</div>
|
|
||||||
<ProfileImage autoWidth={false} pubkey={ev.pubkey} />
|
<ProfileImage autoWidth={false} pubkey={ev.pubkey} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -2,11 +2,11 @@ type Props = {
|
|||||||
name: string;
|
name: string;
|
||||||
size?: number;
|
size?: number;
|
||||||
className?: string;
|
className?: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
const Icon = (props: Props) => {
|
const Icon = (props: Props) => {
|
||||||
const size = props.size || 20;
|
const size = props.size || 20;
|
||||||
const href = '/icons.svg#' + props.name;
|
const href = "/icons.svg#" + props.name;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<svg width={size} height={size} className={props.className}>
|
<svg width={size} height={size} className={props.className}>
|
||||||
|
@ -30,4 +30,4 @@
|
|||||||
.settings-row svg {
|
.settings-row svg {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user