feat: add title for createdAt

This commit is contained in:
Shusui MOYATANI
2023-06-18 09:17:21 +09:00
parent c97dcc94e3
commit 7f0343fcfa

View File

@@ -21,6 +21,7 @@ const Post: Component<PostProps> = (props) => {
const [showOverflow, setShowOverflow] = createSignal();
const createdAt = () => formatDate(props.createdAt);
const createdAtFull = () => props.createdAt.toLocaleString();
const { profile: author } = useProfile(() => ({
pubkey: props.authorPubkey,
@@ -76,6 +77,7 @@ const Post: Component<PostProps> = (props) => {
ev.preventDefault();
props.onShowEvent?.();
}}
title={createdAtFull()}
>
{createdAt()}
</button>