diff --git a/apps/amethyst/app/(tabs)/_layout.tsx b/apps/amethyst/app/(tabs)/_layout.tsx index b1b0e14..f96b237 100644 --- a/apps/amethyst/app/(tabs)/_layout.tsx +++ b/apps/amethyst/app/(tabs)/_layout.tsx @@ -24,7 +24,7 @@ export default function TabLayout() { return ( (null); const j = useStore((state) => state.status); // @me const agent = useStore((state) => state.pdsAgent); - const isReady = useStore((state) => state.isAgentReady); - React.useEffect(() => { - if (agent) { - agent - .getProfile({ actor: agent.did ?? "teal.fm" }) - .then((profile) => { - console.log(profile); - return setProfile(profile); - }) - .catch((e) => { - console.log(e); - }); - } else { - console.log("No agent"); - } - }, [isReady, agent]); + const profile = useStore((state) => state.profiles[agent?.did ?? ""]); if (j !== "loggedIn") { return ; @@ -49,7 +32,7 @@ export default function Screen() { } return ( - + - {profile?.data.displayName?.substring(0, 1) ?? " Richard"} + {profile.bsky?.displayName?.substring(0, 1) ?? " Richard"} - {profile?.data.displayName ?? " Richard"} + {profile.bsky?.displayName ?? " Richard"} {profile - ? profile.data?.description?.split("\n").map((str, i) => ( + ? profile.bsky?.description?.split("\n").map((str, i) => ( {str} )) || "A very mysterious person" : "Loading..."} - + Your Stamps - + - + ); } diff --git a/apps/amethyst/components/play/actorPlaysView.tsx b/apps/amethyst/components/play/actorPlaysView.tsx index ad8c2b6..2de3483 100644 --- a/apps/amethyst/components/play/actorPlaysView.tsx +++ b/apps/amethyst/components/play/actorPlaysView.tsx @@ -1,10 +1,10 @@ import { useStore } from "@/stores/mainStore"; import { Record as Play } from "@teal/lexicons/src/types/fm/teal/alpha/feed/play"; import { useEffect, useState } from "react"; -import { View, Text, ScrollView } from "react-native"; +import { Text, ScrollView } from "react-native"; import PlayView from "./playView"; interface ActorPlaysViewProps { - repo: string; + repo: string | undefined; } interface PlayWrapper { cid: string; @@ -39,7 +39,7 @@ const ActorPlaysView = ({ repo }: ActorPlaysViewProps) => { return ( {play.map((p) => ( - + ))} ); diff --git a/apps/amethyst/global.css b/apps/amethyst/global.css index 1a96253..1c067aa 100644 --- a/apps/amethyst/global.css +++ b/apps/amethyst/global.css @@ -62,3 +62,23 @@ .var-font-soft { font-variation-settings: "SOFT" 100; } + +@supports not selector(::-webkit-scrollbar) { + scrollbar-color: rgba(0, 0, 0, 0.8) transparent; + scrollbar-width: thin; +} + +::-webkit-scrollbar { + width: 7px; +} +::-webkit-scrollbar-track { + -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); +} +::-webkit-scrollbar-thumb { + background-color: darkslategray; + outline: 1px solid slategrey; + border-radius: 99px; +} +::webkit-scrollbar-thumb:hover { + background-color: slategray; +}