-
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
da167fc
commit 351024e
Showing
22 changed files
with
587 additions
and
557 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
17 changes: 17 additions & 0 deletions
17
packages/apps/dev-wallet/src/Components/Breadcrumbs/Breadcrumbs.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,17 @@ | ||
import { IBreadcrumbsProps } from '@kadena/kode-ui'; | ||
import { SideBarBreadcrumbs } from '@kadena/kode-ui/patterns'; | ||
import React, { FC } from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
export const Breadcrumbs: FC<IBreadcrumbsProps> = ({ children, ...props }) => { | ||
return ( | ||
<SideBarBreadcrumbs {...props}> | ||
{React.Children.map(children, (child) => { | ||
if (!React.isValidElement(child)) { | ||
return null; | ||
} | ||
return React.cloneElement(child, { ...child.props, component: Link }); | ||
})} | ||
</SideBarBreadcrumbs> | ||
); | ||
}; |
26 changes: 0 additions & 26 deletions
26
packages/apps/dev-wallet/src/pages/BreadCrumbs/BreadCrumbs.tsx
This file was deleted.
Oops, something went wrong.
19 changes: 8 additions & 11 deletions
19
packages/apps/dev-wallet/src/pages/backup-recovery-phrase/backup-recovery-phrase.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
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
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 |
---|---|---|
@@ -1,49 +1,49 @@ | ||
import { Breadcrumbs } from '@/Components/Breadcrumbs/Breadcrumbs'; | ||
import { Mono123, MonoKey } from '@kadena/kode-icons/system'; | ||
import { Heading, Stack, TabItem, Tabs, Text } from '@kadena/kode-ui'; | ||
import { useLayout } from '@kadena/kode-ui/patterns'; | ||
import { SideBarBreadcrumbsItem } from '@kadena/kode-ui/patterns'; | ||
import { useParams } from 'react-router-dom'; | ||
import { Keys } from './Components/Keys'; | ||
import { KeySets } from './Components/KeySets'; | ||
|
||
export function KeysPage() { | ||
const { tab = 'keys' } = useParams(); | ||
useLayout({ | ||
breadCrumbs: [ | ||
{ | ||
label: 'Manage Your Keys', | ||
visual: <MonoKey />, | ||
url: '/key-management/keys', | ||
}, | ||
], | ||
}); | ||
|
||
return ( | ||
<Stack flexDirection={'column'} gap={'lg'}> | ||
<Heading>Manage Your Keys</Heading> | ||
<Tabs defaultSelectedKey={tab}> | ||
<TabItem | ||
key={'keys'} | ||
title={ | ||
<Stack justifyContent={'center'} alignItems={'center'} gap={'md'}> | ||
<MonoKey /> | ||
<Text>Your Keys</Text> | ||
</Stack> | ||
} | ||
> | ||
<Keys /> | ||
</TabItem> | ||
<TabItem | ||
key={'keysets'} | ||
title={ | ||
<Stack justifyContent={'center'} alignItems={'center'} gap={'md'}> | ||
<Mono123 /> | ||
<Text>Your Key Sets</Text> | ||
</Stack> | ||
} | ||
> | ||
<KeySets /> | ||
</TabItem> | ||
</Tabs> | ||
</Stack> | ||
<> | ||
<Breadcrumbs icon={<MonoKey />}> | ||
<SideBarBreadcrumbsItem href="/">Dashboard</SideBarBreadcrumbsItem> | ||
<SideBarBreadcrumbsItem href="/key-management/keys"> | ||
Manage Your Keys | ||
</SideBarBreadcrumbsItem> | ||
</Breadcrumbs> | ||
<Stack flexDirection={'column'} gap={'lg'}> | ||
<Heading>Manage Your Keys</Heading> | ||
<Tabs defaultSelectedKey={tab}> | ||
<TabItem | ||
key={'keys'} | ||
title={ | ||
<Stack justifyContent={'center'} alignItems={'center'} gap={'md'}> | ||
<MonoKey /> | ||
<Text>Your Keys</Text> | ||
</Stack> | ||
} | ||
> | ||
<Keys /> | ||
</TabItem> | ||
<TabItem | ||
key={'keysets'} | ||
title={ | ||
<Stack justifyContent={'center'} alignItems={'center'} gap={'md'}> | ||
<Mono123 /> | ||
<Text>Your Key Sets</Text> | ||
</Stack> | ||
} | ||
> | ||
<KeySets /> | ||
</TabItem> | ||
</Tabs> | ||
</Stack> | ||
</> | ||
); | ||
} |
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.