masto/timelines: now the params is general typed
This commit is contained in:
parent
a0cbf857a9
commit
6620e022bf
3 changed files with 29 additions and 38 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue