remove unused code
This commit is contained in:
parent
cfbf244955
commit
a500c040f9
@ -38,8 +38,6 @@ export default function ProfilePage() {
|
|||||||
const id = useMemo(() => parseId(params.id!), [params]);
|
const id = useMemo(() => parseId(params.id!), [params]);
|
||||||
const user = useProfile(id)?.get(id);
|
const user = useProfile(id)?.get(id);
|
||||||
const loggedOut = useSelector<RootState, boolean | undefined>(s => s.login.loggedOut);
|
const loggedOut = useSelector<RootState, boolean | undefined>(s => s.login.loggedOut);
|
||||||
const muted = useSelector<RootState, HexKey[]>(s => s.login.muted);
|
|
||||||
const isMuted = useMemo(() => muted.includes(id), [muted, id])
|
|
||||||
const loginPubKey = useSelector<RootState, HexKey | undefined>(s => s.login.publicKey);
|
const loginPubKey = useSelector<RootState, HexKey | undefined>(s => s.login.publicKey);
|
||||||
const follows = useSelector<RootState, HexKey[]>(s => s.login.follows);
|
const follows = useSelector<RootState, HexKey[]>(s => s.login.follows);
|
||||||
const isMe = loginPubKey === id;
|
const isMe = loginPubKey === id;
|
||||||
|
Loading…
Reference in New Issue
Block a user