remove kind 3 from Profile Home

This commit is contained in:
=
2023-03-09 16:52:22 +00:00
parent 486c0be546
commit 0b27a3c833

View File

@@ -45,20 +45,6 @@ const generateContactsSummary = (e:Event | null, loading = false) => {
};
const generateRelaysSummary = (e:Event | null, loading = false) => {
if (e == null) {
return `<div>
<button
${injectLoading(loading)}
class="outline secondary"
>No Relay</button>
</div>`;
}
return `<div><button ${injectLoading(loading)} class="outline secondary">
Relay: ${e.content}
</button></div>`;
};
const generateRelays10002Summary = (e:Event | null, loading = false) => {
if (e == null) {
return `<div>
<button
@@ -152,8 +138,7 @@ export const LoadProfileHome = () => {
<div>
${generateMetadataSummary(fetchCachedProfileEvent(0), !uptodate)}
${generateContactsSummary(fetchCachedProfileEvent(3), !uptodate)}
${generateRelaysSummary(fetchCachedProfileEvent(2), !uptodate)}
${generateRelays10002Summary(fetchCachedProfileEvent(10002), !uptodate)}
${generateRelaysSummary(fetchCachedProfileEvent(10002), !uptodate)}
</div>
</article></div>`}
<div>${generateBackupHeroHeading(uptodate, noprofileinfo, hadlatest)}</div>