masto/timelines: now the params is general typed

This commit is contained in:
thislight 2024-10-24 22:20:38 +08:00
parent a0cbf857a9
commit 6620e022bf
3 changed files with 29 additions and 38 deletions

View file

@ -60,14 +60,14 @@ const Profile: Component = () => {
const [recentToots] = createTimeline(
() => session().client.v1.accounts.$select(params.id).statuses,
() => 20,
() => ({ limit: 20 }),
);
const bannerImg = () => profile()?.header;
const avatarImg = () => profile()?.avatar;
const displayName = () =>
resolveCustomEmoji(profile()?.displayName || "", profile()?.emojis ?? []);
const fullUsername = () => `@${profile()?.acct ?? "..."}`; // TODO: full user name
const fullUsername = () => `@${profile()?.acct ?? ""}`; // TODO: full user name
const description = () => profile()?.note;
css`