diff --git a/src/components/organization/PublicOrganizationDetails.tsx b/src/components/organization/PublicOrganizationDetails.tsx index afba7323a..6683d8275 100644 --- a/src/components/organization/PublicOrganizationDetails.tsx +++ b/src/components/organization/PublicOrganizationDetails.tsx @@ -4,17 +4,13 @@ import { getPublicOrgDetails } from '../../api/organization' import { apiStatusCodes } from "../../config/CommonConstant"; import ProfilesDesign from "../publicProfile/ProfilesDesign"; import OrgWalletDetails from "../publicProfile/OrgWalletDetails"; -import OrgUserInfo from "../publicProfile/OrgUserInfo"; import { AlertComponent } from "../AlertComponent"; import CustomSpinner from "../CustomSpinner"; import { OrgInterface } from "./interfaces"; -import { Roles } from "../../utils/enums/roles"; - const PublicOrganizationDetails = ({ orgSlug }: { orgSlug: string }) => { const [orgData, setOrgData] = useState(null); - const [orgUsersData, setOrgUsersData] = useState(null); const [loading, setLoading] = useState(true); const [error, setError] = useState(null); @@ -28,19 +24,6 @@ const PublicOrganizationDetails = ({ orgSlug }: { orgSlug: string }) => { setOrgData(data?.data); - const orgUsersFilterByRole = data?.data?.userOrgRoles?.filter( - (users: { orgRole: { name: string }; }) => { - return users?.orgRole.name === Roles.OWNER - }, - ); - - const usersData = orgUsersFilterByRole?.map( - (users: { user: { firstName: string } }) => { - return users?.user; - }, - ); - - setOrgUsersData(usersData); } else { setError(response as string); } @@ -76,12 +59,9 @@ const PublicOrganizationDetails = ({ orgSlug }: { orgSlug: string }) => { } -
+
-
-

Users

- -
+
} diff --git a/src/components/publicProfile/OrgWalletDetails.tsx b/src/components/publicProfile/OrgWalletDetails.tsx index eb793ec90..20d4a7dac 100644 --- a/src/components/publicProfile/OrgWalletDetails.tsx +++ b/src/components/publicProfile/OrgWalletDetails.tsx @@ -3,8 +3,6 @@ import React, { useEffect, useState } from "react" import { EmptyListMessage } from "../EmptyListComponent"; import CustomQRCode from "../../commonComponents/QRcode"; -import DateTooltip from '../Tooltip'; -import { dateConversion } from '../../utils/DateConversion'; import { OrgWalletDetailsObject } from "../organization/interfaces"; const OrgWalletDetails = ({orgData}) => { @@ -55,23 +53,8 @@ const OrgWalletDetails = ({orgData}) => { Network : {agentData?.ledgers?.networkType} -
  • - WalletName - : - {agentData?.walletName} -
  • - CreationDate - : -

    - { - agentData?.createDateTime ? - { dateConversion(agentData?.createDateTime) } : - { dateConversion(new Date().toISOString()) } - } -

    -
  • + + )) :
      @@ -92,7 +75,7 @@ const OrgWalletDetails = ({orgData}) => { { connectionInvitation - &&
      + &&
      diff --git a/src/components/publicProfile/ProfilesDesign.tsx b/src/components/publicProfile/ProfilesDesign.tsx index ad4b346e6..c38d49fd8 100644 --- a/src/components/publicProfile/ProfilesDesign.tsx +++ b/src/components/publicProfile/ProfilesDesign.tsx @@ -25,7 +25,7 @@ const ProfilesDesign = ({ orgData }: OrgDataInterface) => { {orgData?.website} }
      -

      {orgData?.description}

      +

      {orgData?.description}