mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-17 22:14:26 +01:00
feat: add title for createdAt
This commit is contained in:
@@ -21,6 +21,7 @@ const Post: Component<PostProps> = (props) => {
|
|||||||
|
|
||||||
const [showOverflow, setShowOverflow] = createSignal();
|
const [showOverflow, setShowOverflow] = createSignal();
|
||||||
const createdAt = () => formatDate(props.createdAt);
|
const createdAt = () => formatDate(props.createdAt);
|
||||||
|
const createdAtFull = () => props.createdAt.toLocaleString();
|
||||||
|
|
||||||
const { profile: author } = useProfile(() => ({
|
const { profile: author } = useProfile(() => ({
|
||||||
pubkey: props.authorPubkey,
|
pubkey: props.authorPubkey,
|
||||||
@@ -76,6 +77,7 @@ const Post: Component<PostProps> = (props) => {
|
|||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
props.onShowEvent?.();
|
props.onShowEvent?.();
|
||||||
}}
|
}}
|
||||||
|
title={createdAtFull()}
|
||||||
>
|
>
|
||||||
{createdAt()}
|
{createdAt()}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user