diff --git a/src/components/Ecosystem/Dashboard.tsx b/src/components/Ecosystem/Dashboard.tsx index 1557c6de3..3e5a9762f 100644 --- a/src/components/Ecosystem/Dashboard.tsx +++ b/src/components/Ecosystem/Dashboard.tsx @@ -44,10 +44,8 @@ const initialPageState = { }; export const RoleTablet = ({ role }: IRoleTablet) => ( -
- {role} -
-); +
{role}
+) const Dashboard = () => { const [ecosystemDetails, setEcosystemDetails] = useState(); @@ -248,33 +246,39 @@ const Dashboard = () => { setMessage(null); setError(null); }} - /> - } - + />} + - {(success || failure) && ( - { - setSuccess(null); - setFailure(null); - }} - /> - )} - + {(success || failure) && ( + { + setSuccess(null); + setFailure(null); + }} + /> + )} + )} + { + ecosystemDetailsNotFound && ( + { + setEcosystemDetailsNotFound(false); + setFailure(null); + }} + /> + ) + } + {ecosystemDetails ? (
-
-
+
+
{ecosystemDetails?.logoUrl ? ( @@ -484,12 +488,10 @@ const Dashboard = () => { isorgModal={isOrgModal} /> {
)}
- )} - - {ecosystemDetailsNotFound && ( - { - setEcosystemDetailsNotFound(false); - setFailure(null); - }} - /> - )} -
+ ) + } +
); }; -export default Dashboard; \ No newline at end of file +export default Dashboard; diff --git a/src/components/Ecosystem/MemberList.tsx b/src/components/Ecosystem/MemberList.tsx index b924fcce0..a7d815a8a 100644 --- a/src/components/Ecosystem/MemberList.tsx +++ b/src/components/Ecosystem/MemberList.tsx @@ -71,9 +71,9 @@ const MemberList = () => { {member.ecosystemRole.name} @@ -88,7 +88,7 @@ const MemberList = () => { member.status === 'SUSPENDED' ? 'bg-red-100 text-red-800 rounded dark:bg-gray-900 dark:text-red-300 border-red-100 dark:border-red-500 border' : 'bg-green-100 text-green-700 dark:bg-gray-700 dark:text-green-400 rounded border border-green-100 dark:border-green-500' - }'text-sm font-medium mr-2 px-2.5 py-1 rounded'`} + } text-sm font-medium mr-2 px-2.5 py-1 rounded-md`} > {member.status} @@ -175,13 +175,16 @@ const MemberList = () => { data={memberList} loading={loading} > -
- -
+ + {currentPage.pageNumber > 1 && ( +
+ +
+ )}
); }; diff --git a/src/components/EcosystemInvite/EcoSystemReceivedInvitations.tsx b/src/components/EcosystemInvite/EcoSystemReceivedInvitations.tsx index b427f4091..b28d1d6f7 100644 --- a/src/components/EcosystemInvite/EcoSystemReceivedInvitations.tsx +++ b/src/components/EcosystemInvite/EcoSystemReceivedInvitations.tsx @@ -9,7 +9,6 @@ import type { AxiosResponse } from 'axios'; import BreadCrumbs from '../BreadCrumbs'; import type { Invitation } from '../organization/interfaces/invitations'; import type { Organisation } from '../organization/interfaces'; -import SendInvitationModal from '../organization/invitations/SendInvitationModal'; import { apiStatusCodes, storageKeys } from '../../config/CommonConstant'; import { pathRoutes } from '../../config/pathRoutes'; import { EmptyListMessage } from '../EmptyListComponent'; @@ -223,7 +222,7 @@ const ReceivedInvitations = () => { - Back + Back

@@ -320,13 +319,13 @@ const ReceivedInvitations = () => { ) )} -
+ {currentPage.pageNumber > 1 &&
-
+
} diff --git a/src/components/EcosystemInvite/SentInvitations.tsx b/src/components/EcosystemInvite/SentInvitations.tsx index 43f66575c..6a587a349 100644 --- a/src/components/EcosystemInvite/SentInvitations.tsx +++ b/src/components/EcosystemInvite/SentInvitations.tsx @@ -110,7 +110,10 @@ const SentInvitations = () => {
    {invitationsList.map((invitation) => ( -
  • +
  • @@ -190,9 +193,10 @@ const SentInvitations = () => { : invitation.status === 'accepted' ? 'bg-green-100 text-green-700 dark:bg-gray-700 dark:text-green-400 rounded border border-green-100 dark:border-green-500' : 'bg-red-100 text-red-800 rounded dark:bg-gray-900 dark:text-red-300 border-red-100 dark:border-red-500 border' - } m-1 text-sm font-medium px-2.5 py-0.5 rounded`} + } m-1 text-sm font-medium px-2.5 py-0.5 rounded-md`} > - {invitation?.status?.charAt(0).toUpperCase() + invitation?.status?.slice(1)} + {invitation?.status?.charAt(0).toUpperCase() + + invitation?.status?.slice(1)}
    {invitation.status === 'pending' && ( @@ -245,13 +249,15 @@ const SentInvitations = () => {
    )} -
    - -
    + {currentPage.pageNumber >1 && ( +
    + +
    + )}
diff --git a/src/components/User/UserDashBoard.tsx b/src/components/User/UserDashBoard.tsx index e17827364..1cc4df5fb 100644 --- a/src/components/User/UserDashBoard.tsx +++ b/src/components/User/UserDashBoard.tsx @@ -171,11 +171,10 @@ const UserDashBoard = () => { }} /> -
{ @@ -184,7 +183,6 @@ const UserDashBoard = () => { }} />
-