-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from oxen-io/staking_card_backend_generation
Staking card backend generation & Fixes
- Loading branch information
Showing
41 changed files
with
7,253 additions
and
918 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,6 @@ | ||
import ScreenContainer from '@/components/ScreenContainer'; | ||
import type { ReactNode } from 'react'; | ||
|
||
export default async function Layout({ children }: { children: ReactNode }) { | ||
return <ScreenContainer>{children}</ScreenContainer>; | ||
} |
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,22 @@ | ||
import { StakedNodesWithAddress } from '@/app/mystakes/modules/StakedNodesModule'; | ||
import { isAddress } from 'viem'; | ||
import { notFound } from 'next/navigation'; | ||
import { ModuleGrid } from '@session/ui/components/ModuleGrid'; | ||
import BalanceModule from '@/app/mystakes/modules/BalanceModule'; | ||
import TotalRewardsModule from '@/app/mystakes/modules/TotalRewardsModule'; | ||
import UnclaimedTokensModule from '@/app/mystakes/modules/UnclaimedTokensModule'; | ||
|
||
export default function Page({ params: { address } }: { params: { address: string } }) { | ||
return isAddress(address) ? ( | ||
<div className="flex flex-col gap-4"> | ||
<ModuleGrid> | ||
<BalanceModule addressOverride={address} /> | ||
<TotalRewardsModule addressOverride={address} /> | ||
<UnclaimedTokensModule addressOverride={address} /> | ||
</ModuleGrid> | ||
<StakedNodesWithAddress address={address} /> | ||
</div> | ||
) : ( | ||
notFound() | ||
); | ||
} |
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
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.