Skip to content

Commit

Permalink
chore(rwa): demo banner (#2771)
Browse files Browse the repository at this point in the history
  • Loading branch information
sstraatemans authored Jan 7, 2025
1 parent c23f8a7 commit 7ac01e1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .changeset/giant-cups-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
6 changes: 6 additions & 0 deletions packages/apps/rwa-demo/src/app/(app)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {

import { ActiveTransactionsList } from '@/components/ActiveTransactionsList/ActiveTransactionsList';
import { AssetInfo } from '@/components/AssetInfo/AssetInfo';
import { DemoBanner } from '@/components/DemoBanner/DemoBanner';
import { TransactionPendingIcon } from '@/components/TransactionPendingIcon/TransactionPendingIcon';
import { useAccount } from '@/hooks/account';
import { useTransactions } from '@/hooks/transactions';
Expand Down Expand Up @@ -86,6 +87,11 @@ const RootLayout = ({
</RightAside>
)}
<SideBarLayout
topBanner={
<Stack width="100%" gap="xs" flexDirection="column">
<DemoBanner />
</Stack>
}
logo={
<Link href="/">
<KLogo height={40} />
Expand Down
12 changes: 12 additions & 0 deletions packages/apps/rwa-demo/src/components/DemoBanner/DemoBanner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Notification, NotificationHeading } from '@kadena/kode-ui';
import type { FC } from 'react';

export const DemoBanner: FC = () => {
return (
<Notification role="status" type="inlineStacked" intent="info">
<NotificationHeading>
This is a demo app. And is not running on Mainnet
</NotificationHeading>
</Notification>
);
};

0 comments on commit 7ac01e1

Please sign in to comment.