mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo-client.git
synced 2026-09-21 16:52:02 -07:00
Adding link to profile in post list
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
// Global npm libraries
|
||||
import React, { useState, useEffect } from 'react'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { Container, Row, Col, Spinner, Table } from 'react-bootstrap'
|
||||
|
||||
// Local libraries
|
||||
@@ -83,9 +84,13 @@ function RecentPosts () {
|
||||
{posts.map((post) => (
|
||||
<tr key={post.txid}>
|
||||
<td>
|
||||
<span style={{ fontFamily: 'monospace' }} title={post.addr}>
|
||||
<Link
|
||||
to={`/profile/${encodeURIComponent(post.addr)}`}
|
||||
style={{ fontFamily: 'monospace' }}
|
||||
title={post.addr}
|
||||
>
|
||||
{truncate(post.addr, 24)}
|
||||
</span>
|
||||
</Link>
|
||||
</td>
|
||||
<td>{post.text}</td>
|
||||
<td>{post.blockHeight}</td>
|
||||
|
||||
Reference in New Issue
Block a user