diff --git a/components/Subscribe/HandleSubscribe.tsx b/components/Subscribe/HandleSubscribe.tsx index 1d96823f..cb11cca7 100644 --- a/components/Subscribe/HandleSubscribe.tsx +++ b/components/Subscribe/HandleSubscribe.tsx @@ -10,6 +10,9 @@ import { useToaster } from "components/Toast"; import { DotLoader } from "components/utils/DotLoader"; import type { OAuthSessionError } from "src/atproto-oauth"; import { HandleInput } from "./HandleInput"; +import { Avatar } from "components/Avatar"; +import { useIdentityData } from "components/IdentityProvider"; +import { useRecordFromDid } from "src/utils/useRecordFromDid"; const apps = [ { name: "Leaflet", logo: "/logos/leaflet.svg" }, { name: "Bluesky", logo: "/logos/bluesky.svg" }, @@ -46,6 +49,8 @@ export const SubscribeWithHandle = (props: { }; }) => { let toaster = useToaster(); + let { identity } = useIdentityData(); + let { data: record } = useRecordFromDid(identity?.atp_did); let [loading, setLoading] = useState(false); let [subscribing, setSubscribing] = useState(false); let [oauthError, setOauthError] = useState(null); @@ -86,7 +91,11 @@ export const SubscribeWithHandle = (props: { <> Subscribe as -
+
{props.user.handle}