-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa2cd31
commit 84a1c53
Showing
35 changed files
with
626 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
20 changes: 20 additions & 0 deletions
20
packages/apps/rwa-demo/src/app/(app)/(isAgent)/investors/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
'use client'; | ||
|
||
import { InvestorList } from '@/components/InvestorList/InvestorList'; | ||
import { SideBarBreadcrumbs } from '@/components/SideBarBreadcrumbs/SideBarBreadcrumbs'; | ||
import { SideBarBreadcrumbsItem } from '@kadena/kode-ui/patterns'; | ||
|
||
const AgentsPage = () => { | ||
return ( | ||
<> | ||
<SideBarBreadcrumbs> | ||
<SideBarBreadcrumbsItem href="/investors"> | ||
Investors | ||
</SideBarBreadcrumbsItem> | ||
</SideBarBreadcrumbs> | ||
<InvestorList /> | ||
</> | ||
); | ||
}; | ||
|
||
export default AgentsPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use client'; | ||
|
||
import { AgentsList } from '@/components/AgentsList/AgentsList'; | ||
import { SideBarBreadcrumbs } from '@/components/SideBarBreadcrumbs/SideBarBreadcrumbs'; | ||
import { SideBarBreadcrumbsItem } from '@kadena/kode-ui/patterns'; | ||
|
||
const AgentsPage = () => { | ||
return ( | ||
<> | ||
<SideBarBreadcrumbs> | ||
<SideBarBreadcrumbsItem href="/agents">Agents</SideBarBreadcrumbsItem> | ||
</SideBarBreadcrumbs> | ||
<AgentsList /> | ||
</> | ||
); | ||
}; | ||
|
||
export default AgentsPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
packages/apps/rwa-demo/src/app/(app)/assets/create/[namespace]/[contractName]/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
'use client'; | ||
import { useAsset } from '@/hooks/asset'; | ||
import { Heading, Stack, Text } from '@kadena/kode-ui'; | ||
import { useParams } from 'next/navigation'; | ||
import { useEffect, useState } from 'react'; | ||
|
||
const CreateAssetPage = () => { | ||
const { setAsset, addExistingAsset } = useAsset(); | ||
const [isFound, setIsFound] = useState<boolean | undefined>(undefined); | ||
|
||
const { namespace, contractName } = useParams(); | ||
|
||
useEffect(() => { | ||
if (!namespace || !contractName) return; | ||
|
||
const asset = addExistingAsset(`${namespace}.${contractName}`); | ||
if (!asset) { | ||
setIsFound(false); | ||
return; | ||
} | ||
setTimeout(() => { | ||
setAsset(asset); | ||
}, 3000); | ||
setIsFound(true); | ||
}, [namespace, contractName]); | ||
|
||
if (isFound === undefined) return null; | ||
|
||
return ( | ||
<Stack | ||
width="100%" | ||
alignItems="center" | ||
flexDirection="column" | ||
gap="md" | ||
marginBlockStart="xxxl" | ||
> | ||
<Heading> | ||
{isFound ? 'The asset is found' : 'The asset is Not found'} | ||
</Heading> | ||
<Text>You will be redirected to the dashboard</Text> | ||
</Stack> | ||
); | ||
}; | ||
export default CreateAssetPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.