refactor user component and updated onboarding
This commit is contained in:
6
src/utils/metadata.tsx
Normal file
6
src/utils/metadata.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import { Author } from 'nostr-relaypool';
|
||||
|
||||
export const fetchMetadata = (pubkey: string, pool: any, relays: any) => {
|
||||
const author = new Author(pool, relays, pubkey);
|
||||
return new Promise((resolve) => author.metaData(resolve, 0));
|
||||
};
|
||||
@@ -13,7 +13,7 @@ export const followsTag = (arr) => {
|
||||
const newarr = [];
|
||||
// push item to tags
|
||||
arr.forEach((item) => {
|
||||
arr.push(['p', item]);
|
||||
newarr.push(['p', item]);
|
||||
});
|
||||
return newarr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user