mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(subplebbit): add feed, posts
This commit is contained in:
@@ -5,7 +5,7 @@ import { Trans, useTranslation } from 'react-i18next';
|
||||
|
||||
export interface BoardStatsProps {
|
||||
address: string | undefined;
|
||||
createdAt: number;
|
||||
createdAt: number | undefined;
|
||||
}
|
||||
|
||||
const BoardStats = ({ address, createdAt }: BoardStatsProps) => {
|
||||
@@ -59,7 +59,7 @@ const BoardStats = ({ address, createdAt }: BoardStatsProps) => {
|
||||
</tr>
|
||||
<tr>
|
||||
<td className={styles.lowercase}>
|
||||
{unixToMMDDYYYY(createdAt)} {t('board_created')}
|
||||
{createdAt && unixToMMDDYYYY(createdAt)} {t('board_created')}
|
||||
{' / '}
|
||||
<Trans
|
||||
i18nKey='board_stats_all'
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './post';
|
||||
@@ -0,0 +1,3 @@
|
||||
.thread {
|
||||
clear: both;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { Comment } from '@plebbit/plebbit-react-hooks';
|
||||
import styles from './post.module.css';
|
||||
|
||||
const Post = ({ post }: Comment) => {
|
||||
const { content, link, title } = post;
|
||||
return (
|
||||
<div>
|
||||
<hr />
|
||||
<h1>{post.title}</h1>
|
||||
<p>{post.content}</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Post;
|
||||
Reference in New Issue
Block a user