remove: recommended tags in preparation for select redesign

This commit is contained in:
benalleng
2023-09-21 09:21:47 -04:00
committed by Paul Miller
parent fa1dab3eb4
commit 414671acce
3 changed files with 8 additions and 60 deletions

View File

@@ -6,10 +6,9 @@ import {
Show,
Switch
} from "solid-js";
import { Dynamic } from "solid-js/web";
import rightArrow from "~/assets/icons/right-arrow.svg";
import { AmountSats, TinyText, VStack } from "~/components";
import { AmountSats, VStack } from "~/components";
import { useI18n } from "~/i18n/context";
import { useMegaStore } from "~/state/megaStore";
import { fetchZaps, getHexpubFromNpub } from "~/utils";
@@ -154,36 +153,10 @@ export function NostrActivity() {
</div>
<Show when={zap.content}>
<hr class="my-2 border-m-grey-750" />
<TinyText>
<Dynamic
component={
zap.content?.includes("From:") ||
zap.content?.includes("://")
? "a"
: "p"
}
href={
zap.content?.split("nostr:")[1]
? formatProfileLink(
getHexpubFromNpub(
zap.content?.split(
"nostr:"
)[1]
) ?? ""
)
: zap.content
}
class="block truncate text-center text-sm font-light text-neutral-200"
target="_blank"
rel="noopener noreferrer"
>
{zap.content?.includes("From:")
? `${i18n.t(
"activity.from"
)} ${zap.content?.split("nostr:")[1]}`
: zap.content}
</Dynamic>
</TinyText>
<p
class="truncate text-center text-sm font-light text-neutral-200"
textContent={zap.content}
/>
</Show>
</div>
)}