-
Notifications
You must be signed in to change notification settings - Fork 1
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 #106 from ar-io/PE-7032-staking-page-updates
PE-7032: staking page updates
- Loading branch information
Showing
38 changed files
with
1,288 additions
and
396 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 |
---|---|---|
|
@@ -9,3 +9,5 @@ dist-id.txt | |
dist-manifest.csv | ||
dist-manifest.json | ||
package-lock.json | ||
*.tsbuildinfo | ||
|
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,37 @@ | ||
const LabelValueRow = ({ | ||
label, | ||
value, | ||
className, | ||
isLink = false, | ||
rightIcon, | ||
}: { | ||
label: string; | ||
value: string; | ||
isLink?: boolean; | ||
className?: string; | ||
rightIcon?: React.ReactNode; | ||
}) => { | ||
return ( | ||
<div className={`flex items-center text-[0.8125rem] ${className}`}> | ||
<div className="text-left text-low">{label}</div> | ||
<div className="grow"></div> | ||
{isLink && value !== '-' ? ( | ||
<a | ||
className="text-gradient" | ||
href={`https://${value}`} | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
{value} | ||
</a> | ||
) : ( | ||
<div className="flex items-center gap-1 text-left text-low"> | ||
{value} | ||
{rightIcon} | ||
</div> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default LabelValueRow; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.