update shortAddress in pending view

This commit is contained in:
Tom
2023-05-25 08:15:08 +02:00
parent ee0261fdec
commit 3a63cc3433
2 changed files with 3 additions and 18 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import { useAccount, useAccountComments, useFeed, usePublishComment, usePublishC
import { flattenCommentsPages } from '@plebbit/plebbit-react-hooks/dist/lib/utils'
import { debounce } from 'lodash';
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 EditModal from '../modals/EditModal';
import ImageBanner from '../ImageBanner';
+2 -17
View File
@@ -285,14 +285,7 @@ const Pending = () => {
 
 
<span className="poster-address">
(u/
<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>)
(u/{account.author.shortAddress})
</span>
&nbsp;
<span className="date-time" data-utc="data">{getDate(comment?.timestamp)}</span>
@@ -333,15 +326,7 @@ const Pending = () => {
Anonymous</span>}
&nbsp;
<span key={`mob-pa-${"pending"}`} className="poster-address-mobile">
(u/
<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>
)&nbsp;
(u/{account.author.shortAddress})&nbsp;
</span>
<br key={`mob-br1-${"pending"}`} />
{comment.title ? (