8000 feat: added wallet type information field by bhavanakarwade · Pull Request #118 · credebl/studio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: added wallet type information field #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8000
Merged
merged 3 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 48 additions & 1 deletion src/components/organization/OrganizationDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,52 @@ const OrganizationDetails = ({ orgData }: { orgData: Organisation | null }) => {
</div>
</div>
</li>

<li className="py-4">
<div className="flex items-center space-x-4">

<div className="inline-flex min-w-0">
<p
className="text-base font-normal text-gray-500 truncate dark:text-gray-400 w-20 md:w-32 lg:w-40"

>
Network
</p>
<p className="text-base font-normal text-gray-500 truncate dark:text-gray-400">:</p>
<p
className="ml-4 text-base font-semibold text-gray-900 truncate dark:text-white w-40 md:w-32 lg:w-80"
>
{agentData?.ledgers.name}
</p>

</div>
</div>
</li>

<li className="py-4">
<div className="flex items-center space-x-4">

<div className="inline-flex min-w-0">
<p
className="text-base font-normal text-gray-500 truncate dark:text-gray-400 w-20 md:w-32 lg:w-40"

>
Wallet Type
</p>
<p className="text-base font-normal text-gray-500 truncate dark:text-gray-400">:</p>
<p
className="ml-4 text-base font-semibold text-gray-900 truncate dark:text-white w-40 md:w-32 lg:w-80"
>
{agentData?.org_agent_type.agent
? agentData.org_agent_type.agent.charAt(0).toUpperCase() +
agentData.org_agent_type.agent.slice(1).toLowerCase()
: ''}

</p>

</div>
</div>
</li>
<li className="py-4">
<div className="flex items-center space-x-4">

Expand All @@ -99,7 +145,8 @@ const OrganizationDetails = ({ orgData }: { orgData: Organisation | null }) => {
<p
className="ml-4 text-base font-semibold text-gray-900 truncate dark:text-white w-40 md:w-32 lg:w-80"
>
{agentData?.agents_type.createDateTime.split("T")[0]}
{agentData?.createDateTime ? agentData.createDateTime.split("T")[0] : new Date().toISOString().split("T")[0]}

</p>

</div>
Expand Down
25 changes: 25 additions & 0 deletions src/components/organization/interfaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export interface OrgAgent {
agentsTypeId: number
orgId: number
orgAgentTypeId: number
ledgers: ledgers
org_agent_type: org_agent_type
agents_type: AgentsType
}

Expand All @@ -62,6 +64,29 @@ export interface AgentsType {
agent: string
}

export interface org_agent_type{
id: number
createDateTime: string
createdBy: number
lastChangedDateTime: string
lastChangedBy: number
agent: string

}

export interface ledgers{
createDateTime: string
createdBy: number
id: number
isActive: boolean
lastChangedBy: number
lastChangedDateTime: string
name: string
networkString: string
networkType: string
poolConfig: string
registerDIDEndpoint: string
}
export interface OrgDashboard {
usersCount: number
schemasCount: number
Expand Down
0