diff --git a/src/common/i18n/locales/en-US.json b/src/common/i18n/locales/en-US.json
index 79fb6d7da75..2774922350b 100644
--- a/src/common/i18n/locales/en-US.json
+++ b/src/common/i18n/locales/en-US.json
@@ -849,6 +849,7 @@
"section-blog": "Blog",
"section-posts": "Posts",
"section-trail": "Likes",
+ "section-activities": "Activites",
"section-comments": "Comments",
"section-replies": "Replies",
"section-communities": "Communities",
@@ -2123,5 +2124,21 @@
"insufficient-resource-buy-hive": "Buy HIVE and Power it up",
"insufficient-resource-wait": "Wait few hours for RC refill",
"report": "Report"
+ },
+ "profile-activities": {
+ "by": "by",
+ "comment": "commented on",
+ "replied": "replied to",
+ "voted": "voted on",
+ "received": "received {{n}} from",
+ "follow": "started following",
+ "unfollow": "unfollowed",
+ "subscribed": "subscribed to community",
+ "unsubscribed": "unsubscribed from community",
+ "witness-vote": "voted witness",
+ "witness-unvote": "unvoted witness",
+ "approved": "approved",
+ "unapproved": "unapproved",
+ "update": "updated thier account"
}
}
diff --git a/src/common/pages/profile-functional.tsx b/src/common/pages/profile-functional.tsx
index 3f81b2bc045..726ba2885d7 100644
--- a/src/common/pages/profile-functional.tsx
+++ b/src/common/pages/profile-functional.tsx
@@ -52,6 +52,7 @@ import WalletSpk from "../components/wallet-spk";
import "./profile.scss";
import { useQueryClient } from "@tanstack/react-query";
import { QueryIdentifiers } from "../core";
+import { ProfileActivites } from "../components/profile-activities";
interface MatchParams {
username: string;
@@ -437,7 +438,7 @@ export const Profile = (props: Props) => {
{ProfileMenu({ ...props, username, section })}
- {[...Object.keys(ProfileFilter), "communities"].includes(section) &&
+ {[...Object.keys(ProfileFilter), "communities"].includes(section) && section !== "activities" &&
ProfileCover({ ...props, account })}
{data &&
@@ -585,6 +586,23 @@ export const Profile = (props: Props) => {
>
);
}
+ if (section === "activities") {
+ return (
+ <>
+
+ >
+ );
+ }
if (data !== undefined && section) {
let entryList;
diff --git a/src/common/routes.ts b/src/common/routes.ts
index b79f4df04a3..ce2d14283d2 100644
--- a/src/common/routes.ts
+++ b/src/common/routes.ts
@@ -24,7 +24,7 @@ export default {
USER_FEED: `/:username(@[\\w\\.\\d-]+)/:section(feed)`,
USER_SECTION: `/:username(@[\\w\\.\\d-]+)/:section(${profileFilters.join(
"|"
- )}|wallet|points|engine|communities|settings|permissions|referrals|followers|following|spk|trail)`,
+ )}|wallet|points|engine|communities|settings|permissions|referrals|followers|following|spk|trail|activities)`,
COMMUNITIES: `/communities`,
COMMUNITIES_CREATE: `/communities/create`,
COMMUNITIES_CREATE_HS: `/communities/create-hs`,
diff --git a/src/common/store/global/types.ts b/src/common/store/global/types.ts
index b4c2a58b910..25b5a750475 100644
--- a/src/common/store/global/types.ts
+++ b/src/common/store/global/types.ts
@@ -26,6 +26,7 @@ export enum EntryFilter {
export enum ProfileFilter {
blog = "blog",
posts = "posts",
+ activities = "activities",
comments = "comments",
replies = "replies"
}