refactor(notes): rename to include popup
This commit is contained in:
parent
7c3bf7d76a
commit
a763c917a6
@ -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)}
|
||||||
|
@ -16,7 +16,7 @@ interface NoteRepostProps {
|
|||||||
handleClose: () => void
|
handleClose: () => void
|
||||||
}
|
}
|
||||||
|
|
||||||
export const NoteRepost = ({
|
export const NoteRepostPopup = ({
|
||||||
ndkEvent,
|
ndkEvent,
|
||||||
handleConfirm,
|
handleConfirm,
|
||||||
handleClose
|
handleClose
|
Loading…
x
Reference in New Issue
Block a user