mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
update shortAddress in pending view
This commit is contained in:
@@ -8,7 +8,7 @@ import { useAccount, useAccountComments, useFeed, usePublishComment, usePublishC
|
|||||||
import { flattenCommentsPages } from '@plebbit/plebbit-react-hooks/dist/lib/utils'
|
import { flattenCommentsPages } from '@plebbit/plebbit-react-hooks/dist/lib/utils'
|
||||||
import { debounce } from 'lodash';
|
import { debounce } from 'lodash';
|
||||||
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
import useGeneralStore from '../../hooks/stores/useGeneralStore';
|
||||||
import { Container, NavBar, Header, Break, PostFormLink, PostFormTable, PostForm, TopBar, BoardForm, PostMenu} from '../styled/views/Board.styled';
|
import { Container, NavBar, Header, Break, PostFormLink, PostFormTable, PostForm, TopBar, BoardForm, PostMenu } from '../styled/views/Board.styled';
|
||||||
import { Footer, AuthorDeleteAlert } from '../styled/views/Thread.styled';
|
import { Footer, AuthorDeleteAlert } from '../styled/views/Thread.styled';
|
||||||
import EditModal from '../modals/EditModal';
|
import EditModal from '../modals/EditModal';
|
||||||
import ImageBanner from '../ImageBanner';
|
import ImageBanner from '../ImageBanner';
|
||||||
|
|||||||
@@ -285,14 +285,7 @@ const Pending = () => {
|
|||||||
|
|
||||||
|
|
||||||
<span className="poster-address">
|
<span className="poster-address">
|
||||||
(u/
|
(u/{account.author.shortAddress})
|
||||||
<span key={`pa-${"pending"}`} className="poster-address"
|
|
||||||
data-tooltip-id="tooltip"
|
|
||||||
data-tooltip-content={account?.author?.address}
|
|
||||||
data-tooltip-place="top"
|
|
||||||
>
|
|
||||||
{account?.author?.address.slice(0, 10) + "(...)"}
|
|
||||||
</span>)
|
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span className="date-time" data-utc="data">{getDate(comment?.timestamp)}</span>
|
<span className="date-time" data-utc="data">{getDate(comment?.timestamp)}</span>
|
||||||
@@ -333,15 +326,7 @@ const Pending = () => {
|
|||||||
Anonymous</span>}
|
Anonymous</span>}
|
||||||
|
|
||||||
<span key={`mob-pa-${"pending"}`} className="poster-address-mobile">
|
<span key={`mob-pa-${"pending"}`} className="poster-address-mobile">
|
||||||
(u/
|
(u/{account.author.shortAddress})
|
||||||
<span key={`mob-ha-${"pending"}`} className="poster-address-mobile"
|
|
||||||
data-tooltip-id="tooltip"
|
|
||||||
data-tooltip-content={account?.author?.address}
|
|
||||||
data-tooltip-place="top"
|
|
||||||
>
|
|
||||||
{account?.author?.address.slice(0, 10) + "(...)"}
|
|
||||||
</span>
|
|
||||||
)
|
|
||||||
</span>
|
</span>
|
||||||
<br key={`mob-br1-${"pending"}`} />
|
<br key={`mob-br1-${"pending"}`} />
|
||||||
{comment.title ? (
|
{comment.title ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user