🚨make biome happy with new stuff

This commit is contained in:
Rose 2024-10-16 10:10:43 -05:00
parent 5b5e21e614
commit eb97ade514
No known key found for this signature in database
4 changed files with 18 additions and 12 deletions

View file

@ -1,4 +1,4 @@
import { AppBskyActorDefs } from "@atproto/api";
import type { AppBskyActorDefs } from "@atproto/api";
import { OEmbedTypes } from "../routes/getOEmbed.ts";
import { Layout } from "./Layout.tsx";
@ -12,7 +12,10 @@ interface ProfileProps {
export const Profile = ({ profile, url, appDomain }: ProfileProps) => (
<Layout url={url}>
<meta name="twitter:creator" content={`@${profile.handle}`} />
<meta property="og:description" content={profile.description ?? ""} />
<meta
property="og:description"
content={profile.description ?? ""}
/>
<meta
property="og:title"
content={`${profile.displayName} (@${profile.handle})`}
@ -21,11 +24,11 @@ export const Profile = ({ profile, url, appDomain }: ProfileProps) => (
<link
type="application/json+oembed"
href={`https://${appDomain}/oembed?type=${OEmbedTypes.Profile}&follows=${
profile.followsCount
}&posts=${profile.postsCount}&avatar=${encodeURIComponent(
profile.avatar ?? ""
)}`}
href={`https://${appDomain}/oembed?type=${
OEmbedTypes.Profile
}&follows=${profile.followsCount}&posts=${
profile.postsCount
}&avatar=${encodeURIComponent(profile.avatar ?? "")}`}
/>
</Layout>
);