This commit is contained in:
parent
63edff2aed
commit
b36e98c09d
@ -1,31 +1,22 @@
|
|||||||
import ContentCopyIcon from '@mui/icons-material/ContentCopy'
|
import ContentCopyIcon from '@mui/icons-material/ContentCopy'
|
||||||
import {
|
import EditIcon from '@mui/icons-material/Edit'
|
||||||
Box,
|
import { Box, IconButton, SxProps, Theme, Typography } from '@mui/material'
|
||||||
IconButton,
|
import { truncate } from 'lodash'
|
||||||
SxProps,
|
import { VerifiedEvent, nip19 } from 'nostr-tools'
|
||||||
Typography,
|
|
||||||
useTheme,
|
|
||||||
Theme
|
|
||||||
} from '@mui/material'
|
|
||||||
import { nip19, VerifiedEvent } from 'nostr-tools'
|
|
||||||
import { useEffect, useMemo, useState } from 'react'
|
import { useEffect, useMemo, useState } from 'react'
|
||||||
|
import { useSelector } from 'react-redux'
|
||||||
import { Link, useNavigate, useParams } from 'react-router-dom'
|
import { Link, useNavigate, useParams } from 'react-router-dom'
|
||||||
import { toast } from 'react-toastify'
|
import { toast } from 'react-toastify'
|
||||||
import { MetadataController } from '../../controllers'
|
|
||||||
import { NostrJoiningBlock, ProfileMetadata } from '../../types'
|
|
||||||
import styles from './style.module.scss'
|
|
||||||
import { useSelector } from 'react-redux'
|
|
||||||
import { State } from '../../store/rootReducer'
|
|
||||||
import { getRoboHashPicture, hexToNpub, shorten } from '../../utils'
|
|
||||||
import { truncate } from 'lodash'
|
|
||||||
import { getProfileSettingsRoute } from '../../routes'
|
|
||||||
import EditIcon from '@mui/icons-material/Edit'
|
|
||||||
import LinkIcon from '@mui/icons-material/Link'
|
|
||||||
import { LoadingSpinner } from '../../components/LoadingSpinner'
|
import { LoadingSpinner } from '../../components/LoadingSpinner'
|
||||||
|
import { MetadataController } from '../../controllers'
|
||||||
|
import { getProfileSettingsRoute } from '../../routes'
|
||||||
|
import { State } from '../../store/rootReducer'
|
||||||
|
import { NostrJoiningBlock, ProfileMetadata } from '../../types'
|
||||||
|
import { getRoboHashPicture, hexToNpub, shorten } from '../../utils'
|
||||||
|
import styles from './style.module.scss'
|
||||||
|
|
||||||
export const ProfilePage = () => {
|
export const ProfilePage = () => {
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
const theme = useTheme()
|
|
||||||
|
|
||||||
const { npub } = useParams()
|
const { npub } = useParams()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user