Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial fetch profile w/ nostr-react, show profile in navbar #18

Merged
merged 5 commits into from
Mar 22, 2023

Conversation

chdwlch
Copy link
Collaborator

@chdwlch chdwlch commented Mar 21, 2023

Initial implementation of #11, using nostr-react package.

Nostr-react useProfile implementation doesn't return last updated profile metadata... instead it returns the latest event received (can cause flashing). See t4t5/nostr-react#17

I also added prettierignore b/c my editor keeps changing everything lol my bad

Screenshot 2023-03-21 at 6 46 36 AM

@netlify
Copy link

netlify bot commented Mar 21, 2023

Deploy Preview for superlative-biscotti-9be5a4 ready!

Name Link
🔨 Latest commit 33113e3
🔍 Latest deploy log https://app.netlify.com/sites/superlative-biscotti-9be5a4/deploys/641b4fbd92e12600086fec75
😎 Deploy Preview https://deploy-preview-18--superlative-biscotti-9be5a4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@chdwlch
Copy link
Collaborator Author

chdwlch commented Mar 21, 2023

Also I removed the Welcome, because it's hard to manage the layout shift while the data is loading.

@chdwlch
Copy link
Collaborator Author

chdwlch commented Mar 21, 2023

Another problem with nostr-react is that it kinda locks us into a fixed set of relays for subscribing + publishing.
We will need to only publish to the teams' relay with the new kinds. Can either initialize a separate context or just use one single relay and publish test profile metadata there

@chdwlch
Copy link
Collaborator Author

chdwlch commented Mar 21, 2023

think i broke this need to fix it still
Screenshot 2023-03-21 at 7 19 29 AM

@sbddesign sbddesign merged commit e1ac284 into main Mar 22, 2023
@sbddesign sbddesign deleted the cw-profile branch March 22, 2023 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants