bug: follows you
This commit is contained in:
@ -98,12 +98,7 @@ export default function ProfilePage() {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const [id, setId] = useState<string>();
|
const [id, setId] = useState<string>();
|
||||||
const user = useUserProfile(id);
|
const user = useUserProfile(id);
|
||||||
const { publicKey: loginPubKey, follows } = useSelector((s: RootState) => {
|
const loginPubKey = useSelector((s: RootState) => s.login.publicKey);
|
||||||
return {
|
|
||||||
publicKey: s.login.publicKey,
|
|
||||||
follows: s.login.follows,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
const isMe = loginPubKey === id;
|
const isMe = loginPubKey === id;
|
||||||
const [showLnQr, setShowLnQr] = useState<boolean>(false);
|
const [showLnQr, setShowLnQr] = useState<boolean>(false);
|
||||||
const [showProfileQr, setShowProfileQr] = useState<boolean>(false);
|
const [showProfileQr, setShowProfileQr] = useState<boolean>(false);
|
||||||
@ -123,6 +118,7 @@ export default function ProfilePage() {
|
|||||||
const pinned = usePinnedFeed(id);
|
const pinned = usePinnedFeed(id);
|
||||||
const muted = useMutedFeed(id);
|
const muted = useMutedFeed(id);
|
||||||
const badges = useProfileBadges(id);
|
const badges = useProfileBadges(id);
|
||||||
|
const follows = useFollowsFeed(id);
|
||||||
// tabs
|
// tabs
|
||||||
const ProfileTab = {
|
const ProfileTab = {
|
||||||
Notes: { text: formatMessage(messages.Notes), value: NOTES },
|
Notes: { text: formatMessage(messages.Notes), value: NOTES },
|
||||||
|
Reference in New Issue
Block a user