-
Notifications
You must be signed in to change notification settings - Fork 27
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
e176380
commit 4005a8d
Showing
9 changed files
with
144 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Text } from "@/components/ui/text.tsx"; | ||
import { shortenAddress } from "@/lib/utils/strings.ts"; | ||
import { useClusterPageParams } from "@/hooks/cluster/use-cluster-page-params.ts"; | ||
import { CopyBtn } from "@/components/ui/copy-btn.tsx"; | ||
|
||
export const ClusterBackBtnHeader = () => { | ||
const { clusterHash } = useClusterPageParams(); | ||
|
||
return ( | ||
<div className="flex gap-4"> | ||
Cluster {shortenAddress((clusterHash || "").slice(2) || "", 4, 4)} | ||
<div className="h-6 w-[1px] bg-gray-400" /> | ||
<Text className="text-gray-700 font-medium flex items-center gap-4"> | ||
{shortenAddress((clusterHash || "").slice(2) || "", 4, 4)} | ||
<CopyBtn | ||
isFullSizeIcon | ||
text={clusterHash} | ||
className="bg-transparent text-[24px] size-[24px] p-0" | ||
/> | ||
</Text> | ||
</div> | ||
); | ||
}; |
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