@@ -439,6 +421,19 @@ export const ProfileCard = ({
>
{t('viewProfile')}
+ {onToggleSave ? (
+
+ ) : null}
{(typeof navigator !== 'undefined' &&
typeof navigator.share === 'function') ||
!!onShare ? (
diff --git a/src/features/Discovery/ProfileGrid.tsx b/src/features/Discovery/ProfileGrid.tsx
index 7d1aed2..2a2ccab 100644
--- a/src/features/Discovery/ProfileGrid.tsx
+++ b/src/features/Discovery/ProfileGrid.tsx
@@ -17,6 +17,7 @@ type ProfileGridProps = {
emptyState?: ReactNode;
isLoggedIn?: boolean;
savedProfileIds?: string[];
+ currentProfileId?: string;
matchCriteria?: MatchCriteria | null;
sortByMatchScore?: boolean;
onCopyUsername?: (username: string, profileId: string) => void;
@@ -81,6 +82,7 @@ export const ProfileGrid = ({
emptyState,
isLoggedIn = false,
savedProfileIds,
+ currentProfileId,
matchCriteria = null,
sortByMatchScore = false,
onCopyUsername,
@@ -191,26 +193,30 @@ export const ProfileGrid = ({
}
};
- const renderProfileCard = ({ profile, index }: ProfileGridItem) => (
-
- );
+ const renderProfileCard = ({ profile, index }: ProfileGridItem) => {
+ const canSaveProfile = saveEnabled && profile.id !== currentProfileId;
+
+ return (
+
+ );
+ };
const renderProfileColumns = (columnCount: number, className: string) => (
diff --git a/src/locales/en.json b/src/locales/en.json
index c669dda..4d5c77c 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -374,7 +374,7 @@
"title": "Saved profiles",
"subtitle": "Profiles you saved to revisit. Private or removed profiles drop off automatically.",
"emptyTitle": "No saved profiles yet",
- "emptyDescription": "Use the bookmark on any profile card to keep it here for later.",
+ "emptyDescription": "Use the save action in any profile card menu to keep it here for later.",
"emptyAction": "Browse profiles"
},
"Onboarding": {
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 9992938..6912bff 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -374,7 +374,7 @@
"title": "保存したプロフィール",
"subtitle": "あとで見返すために保存したプロフィール。非公開や削除されたプロフィールは自動的に表示されなくなります。",
"emptyTitle": "保存したプロフィールはまだありません",
- "emptyDescription": "プロフィールカードのブックマークを押すと、ここに保存して後で見返せます。",
+ "emptyDescription": "プロフィールカードメニューの保存アクションを使うと、ここに保存して後で見返せます。",
"emptyAction": "プロフィールを見る"
},
"Onboarding": {