PressableScale

This commit is contained in:
2025-10-03 11:05:38 +02:00
parent afd7cf9d45
commit d03cec164f
4 changed files with 25 additions and 22 deletions
+8 -8
View File
@@ -17,6 +17,7 @@ import { useGlobal } from "reactn";
import { background, icons, img } from "../../assets";
import BorderGradient from "../../components/BorderGradient/BorderGradient";
import MoreMenu from "../../components/MoreMenu";
import PressableScale from "../../components/PressableScale";
import { projectsRef, usersRef } from "../../config/firebase";
import useDataFromRef from "../../hooks/useDataFromRef";
import useLayoutType from "../../hooks/useLayoutType";
@@ -65,7 +66,7 @@ const Profile = () => {
setFollowers(
Array.isArray(currentUserData?.followedBy)
? currentUserData.followedBy.length
: 0,
: 0
);
return;
}
@@ -139,8 +140,7 @@ const Profile = () => {
setSelectedProjectId(item.id);
setMenuPosition(posTop);
setShowMenu(
(prev) =>
!prev || posTop?.top !== (menuPosition?.top ?? null),
(prev) => !prev || posTop?.top !== (menuPosition?.top ?? null)
);
}}
/>
@@ -243,9 +243,9 @@ const Profile = () => {
}}
rightComponent={() =>
!isWeb && isSelf ? (
<Pressable onPress={() => SheetManager.show("ProfileSettings")}>
<PressableScale onPress={() => SheetManager.show("ProfileSettings")}>
<Image source={icons.more} style={{ ...size({ size: 24 }) }} />
</Pressable>
</PressableScale>
) : null
}
>
@@ -262,8 +262,8 @@ const Profile = () => {
// Platform.OS !== "ios" ? "dimezisBlurView" : "none"
// }
>
{isWeb && (
<Pressable
{isWeb && isSelf && (
<PressableScale
style={{
zIndex: 2,
}}
@@ -278,7 +278,7 @@ const Profile = () => {
top: 10,
}}
/>
</Pressable>
</PressableScale>
)}
<View style={{ alignItems: "center" }}>