-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RELEASE] 2024 March 29 - Tangle Dapp (#2159)
- Loading branch information
1 parent
a80f383
commit 643184b
Showing
167 changed files
with
4,366 additions
and
2,079 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import Button from '@webb-tools/webb-ui-components/components/buttons/Button'; | ||
import { AppTemplate } from '@webb-tools/webb-ui-components/containers/AppTemplate'; | ||
import { Typography } from '@webb-tools/webb-ui-components/typography/Typography'; | ||
|
||
export default function Loading() { | ||
return ( | ||
<AppTemplate.Content> | ||
<AppTemplate.Title | ||
title="Claim your $TNT airdrop" | ||
subTitle="CLAIM AIRDROP" | ||
overrideSubTitleProps={{ | ||
className: 'text-blue-70 dark:text-blue-50', | ||
}} | ||
/> | ||
|
||
<AppTemplate.DescriptionContainer> | ||
<AppTemplate.Description | ||
variant="mkt-body2" | ||
className="text-mono-140 dark:text-mono-80" | ||
> | ||
As part of {"Tangle's"} initial launch, the Tangle Network is | ||
distributing 5 million TNT tokens to the community. Check eligibility | ||
below to see if you qualify for TNT airdrop! | ||
</AppTemplate.Description> | ||
</AppTemplate.DescriptionContainer> | ||
|
||
<AppTemplate.Body> | ||
<Typography variant="mkt-body2" ta="center" fw="bold"> | ||
Connect your EVM or Substrate wallet to check eligibility: | ||
</Typography> | ||
|
||
<div className="space-y-2"> | ||
<Button isFullWidth isDisabled> | ||
Connect EVM Wallet | ||
</Button> | ||
|
||
<Button variant="secondary" isDisabled isFullWidth> | ||
Connect Substrate Wallet | ||
</Button> | ||
</div> | ||
</AppTemplate.Body> | ||
</AppTemplate.Content> | ||
); | ||
} |
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
18 changes: 18 additions & 0 deletions
18
apps/tangle-dapp/app/nomination/[validatorAddress]/TotalRestaked.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,18 @@ | ||
'use client'; | ||
|
||
import { Typography } from '@webb-tools/webb-ui-components'; | ||
import { FC } from 'react'; | ||
|
||
import useNetworkStore from '../../../context/useNetworkStore'; | ||
|
||
const TotalRestaked: FC<{ totalRestaked: number }> = ({ totalRestaked }) => { | ||
const { nativeTokenSymbol } = useNetworkStore(); | ||
|
||
return ( | ||
<Typography variant="h4" fw="bold" className="whitespace-nowrap"> | ||
{totalRestaked} {nativeTokenSymbol} | ||
</Typography> | ||
); | ||
}; | ||
|
||
export default TotalRestaked; |
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.