|
@ -7,7 +7,6 @@ import { |
|
|
import PropTypes from 'prop-types'; |
|
|
import PropTypes from 'prop-types'; |
|
|
import { useTranslation } from 'react-i18next'; |
|
|
import { useTranslation } from 'react-i18next'; |
|
|
import moment from 'moment'; |
|
|
import moment from 'moment'; |
|
|
import { useHistory } from 'react-router'; |
|
|
|
|
|
import { useDispatch, useSelector } from 'react-redux'; |
|
|
import { useDispatch, useSelector } from 'react-redux'; |
|
|
import { Link } from 'react-router-dom'; |
|
|
import { Link } from 'react-router-dom'; |
|
|
import { FETCH_USER_DATABASE } from '../../../redux/actions/peerDbReplicationActions'; |
|
|
import { FETCH_USER_DATABASE } from '../../../redux/actions/peerDbReplicationActions'; |
|
@ -35,7 +34,6 @@ const PostListRow = (props) => { |
|
|
const posts = useSelector((state) => state.orbitData.posts); |
|
|
const posts = useSelector((state) => state.orbitData.posts); |
|
|
const users = useSelector((state) => state.orbitData.users); |
|
|
const users = useSelector((state) => state.orbitData.users); |
|
|
const dispatch = useDispatch(); |
|
|
const dispatch = useDispatch(); |
|
|
const history = useHistory(); |
|
|
|
|
|
const { t } = useTranslation(); |
|
|
const { t } = useTranslation(); |
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
@ -150,7 +148,9 @@ const PostListRow = (props) => { |
|
|
</Feed.Extra> |
|
|
</Feed.Extra> |
|
|
</Feed.Content> |
|
|
</Feed.Content> |
|
|
</Dimmer.Dimmable> |
|
|
</Dimmer.Dimmable> |
|
|
), [authorAvatarLink, loading, postAuthor, postContent, postIndexInTopic, postSubject, t, timeAgo]); |
|
|
), [ |
|
|
|
|
|
authorAvatarLink, loading, postAuthor, postAuthorAddress, postContent, postIndexInTopic, postSubject, t, timeAgo, |
|
|
|
|
|
]); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
PostListRow.defaultProps = { |
|
|
PostListRow.defaultProps = { |
|
|