mirror of
https://github.com/aljazceru/nostr-profile-manager.git
synced 2025-12-17 21:54:19 +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) => {
|
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) {
|
if (e == null) {
|
||||||
return `<div>
|
return `<div>
|
||||||
<button
|
<button
|
||||||
@@ -152,8 +138,7 @@ export const LoadProfileHome = () => {
|
|||||||
<div>
|
<div>
|
||||||
${generateMetadataSummary(fetchCachedProfileEvent(0), !uptodate)}
|
${generateMetadataSummary(fetchCachedProfileEvent(0), !uptodate)}
|
||||||
${generateContactsSummary(fetchCachedProfileEvent(3), !uptodate)}
|
${generateContactsSummary(fetchCachedProfileEvent(3), !uptodate)}
|
||||||
${generateRelaysSummary(fetchCachedProfileEvent(2), !uptodate)}
|
${generateRelaysSummary(fetchCachedProfileEvent(10002), !uptodate)}
|
||||||
${generateRelays10002Summary(fetchCachedProfileEvent(10002), !uptodate)}
|
|
||||||
</div>
|
</div>
|
||||||
</article></div>`}
|
</article></div>`}
|
||||||
<div>${generateBackupHeroHeading(uptodate, noprofileinfo, hadlatest)}</div>
|
<div>${generateBackupHeroHeading(uptodate, noprofileinfo, hadlatest)}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user