diff --git a/apps/admin-x-activitypub/package.json b/apps/admin-x-activitypub/package.json index 27d1c650ee..00410acba0 100644 --- a/apps/admin-x-activitypub/package.json +++ b/apps/admin-x-activitypub/package.json @@ -1,6 +1,6 @@ { "name": "@tryghost/admin-x-activitypub", - "version": "0.1.6", + "version": "0.1.7", "license": "MIT", "repository": { "type": "git", diff --git a/apps/admin-x-activitypub/src/components/Profile.tsx b/apps/admin-x-activitypub/src/components/Profile.tsx index 20c9275b1f..0a2c8b445f 100644 --- a/apps/admin-x-activitypub/src/components/Profile.tsx +++ b/apps/admin-x-activitypub/src/components/Profile.tsx @@ -35,6 +35,12 @@ const Profile: React.FC = ({}) => { const layout = 'feed'; + const [visibleFollowers, setVisibleFollowers] = useState(30); + + const loadMoreFollowers = () => { + setVisibleFollowers(prev => prev + 30); + }; + const tabs = [ { id: 'posts', @@ -149,7 +155,7 @@ const Profile: React.FC = ({}) => { ) : ( - {followers.map((item) => { + {followers.slice(0, visibleFollowers).map((item) => { return ( @@ -164,6 +170,13 @@ const Profile: React.FC = ({}) => { })} )} + {visibleFollowers < followers.length && ( +