mirror of
https://github.com/aljazceru/nostr-profile-manager.git
synced 2025-12-17 05:34:20 +01:00
remove kind 3 from Profile Home
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user