refactor(notes): rename to include popup

This commit is contained in:
en 2025-02-14 13:16:19 +01:00
parent 7c3bf7d76a
commit a763c917a6
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ import { appRoutes, getProfilePageRoute } from 'routes'
import { UserProfile } from 'types' import { UserProfile } from 'types'
import { hexToNpub } from 'utils' import { hexToNpub } from 'utils'
import { NoteSubmit } from './NoteSubmit' import { NoteSubmit } from './NoteSubmit'
import { NoteRepost } from './NoteRepost' import { NoteRepostPopup } from './NoteRepostPopup'
interface NoteProps { interface NoteProps {
ndkEvent: NDKEvent ndkEvent: NDKEvent
@ -276,7 +276,7 @@ export const Note = ({ ndkEvent }: NoteProps) => {
</div> </div>
)} )}
{showRepostPopup && ( {showRepostPopup && (
<NoteRepost <NoteRepostPopup
ndkEvent={repostEvent || ndkEvent} ndkEvent={repostEvent || ndkEvent}
handleConfirm={handleRepost} handleConfirm={handleRepost}
handleClose={() => setShowRepostPopup(false)} handleClose={() => setShowRepostPopup(false)}

View File

@ -16,7 +16,7 @@ interface NoteRepostProps {
handleClose: () => void handleClose: () => void
} }
export const NoteRepost = ({ export const NoteRepostPopup = ({
ndkEvent, ndkEvent,
handleConfirm, handleConfirm,
handleClose handleClose