From 44bf9d156229e5abfc0656d89d18786d8dff0994 Mon Sep 17 00:00:00 2001
From: YasinShaikh123 <123150391+YasinShaikh123@users.noreply.github.com>
Date: Wed, 16 Oct 2024 13:28:34 +0530
Subject: [PATCH] =?UTF-8?q?working=20subnet=20mobile=F0=9F=91=B7=E2=80=8D?=
=?UTF-8?q?=E2=99=82=EF=B8=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
dev-dist/sw.js | 2 +-
.../LatestTransactions/LatestTransactions.jsx | 12 +--
src/pages/DidInfo.jsx | 6 +-
src/pages/SmartContract.jsx | 96 +++++++++++--------
src/pages/SubnetIdOverview.jsx | 12 +--
src/pages/Transaction.jsx | 2 +-
src/pages/Transaction/TransactionDetails.jsx | 44 +++++----
7 files changed, 95 insertions(+), 79 deletions(-)
diff --git a/dev-dist/sw.js b/dev-dist/sw.js
index c855d9f..86fe1e3 100644
--- a/dev-dist/sw.js
+++ b/dev-dist/sw.js
@@ -82,7 +82,7 @@ define(['./workbox-b5f7729d'], (function (workbox) { 'use strict';
"revision": "3ca0b8505b4bec776b69afdba2768812"
}, {
"url": "index.html",
- "revision": "0.kb4eps7ip5"
+ "revision": "0.75helcmbjto"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
diff --git a/src/components/LatestTransactions/LatestTransactions.jsx b/src/components/LatestTransactions/LatestTransactions.jsx
index 74badcc..a24b4a4 100644
--- a/src/components/LatestTransactions/LatestTransactions.jsx
+++ b/src/components/LatestTransactions/LatestTransactions.jsx
@@ -28,8 +28,6 @@ const LatestTransactions = () => {
navigator.clipboard
.writeText(text)
.then(() => {
- // console.log('Text copied to clipboard');
- // alert('Text copied to clipboard');
toast({
render: () => (
@@ -40,7 +38,6 @@ const LatestTransactions = () => {
console.error("Failed to copy text: ", err);
});
}
-
return (
@@ -161,10 +158,7 @@ const LatestTransactions = () => {
onClick={() => copyToClipboard(transaction.sender)}
/>
-
-
-
-
+
@@ -177,12 +171,10 @@ const LatestTransactions = () => {
>
navigate(`/did-info/${transaction.receiver}`)
}
diff --git a/src/pages/DidInfo.jsx b/src/pages/DidInfo.jsx
index ef92bce..c36433b 100644
--- a/src/pages/DidInfo.jsx
+++ b/src/pages/DidInfo.jsx
@@ -74,7 +74,7 @@ const DidInfo = () => {
DID
-
+
{
cursor={"pointer"}
color={colorMode === "light" ? "#230A79" : "#B09AFF"}
>
- {params?.id}
+ {params?.id}
copyToClipboard(transaction.sender)}
diff --git a/src/pages/SmartContract.jsx b/src/pages/SmartContract.jsx
index d53346b..40e453c 100644
--- a/src/pages/SmartContract.jsx
+++ b/src/pages/SmartContract.jsx
@@ -53,14 +53,13 @@ import ToastBox from "../components/ToastBox";
Smart Contract Token
- abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz
- {/*
- copyToClipboard(transaction.sender)}/>
- */}
+ textOverflow={"ellipsis"}
+ isTruncated
+ cursor={"pointer"}
+ color={colorMode === "light" ? "#230A79" : "#B09AFF"}>
+
+ abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577
+
@@ -70,7 +69,7 @@ import ToastBox from "../components/ToastBox";
isTruncated
cursor={"pointer"}
fontSize={"sm"} pb={3} color={colorMode === "light" ? "#230A79" : "#B09AFF"}>
- abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz
+ abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz
copyToClipboard(transaction.sender)}/>
@@ -83,19 +82,20 @@ import ToastBox from "../components/ToastBox";
Block ID:
+
abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz
-
+
copyToClipboard(transaction.sender)}/>
-
+
@@ -107,14 +107,15 @@ import ToastBox from "../components/ToastBox";
alignItems={"center"}
color={colorMode === "light" ? "#230A79" : "#B09AFF"}
textDecoration={"underline"}
- whiteSpace={"nowrap"} // Prevent the text from wrapping
- textOverflow={"ellipsis"}
- isTruncated
cursor={"pointer"}
>
+
abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz!
-
+
copyToClipboard(transaction.receiver)}/>
@@ -122,15 +123,14 @@ import ToastBox from "../components/ToastBox";
Network
- navigate(`/did-info/abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz`)}> abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz
-
+ navigate(`/did-info/abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz`)}> abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz
+
+
copyToClipboard(transaction.sender)}/>
@@ -138,33 +138,39 @@ import ToastBox from "../components/ToastBox";
Executor
- navigate(`/did-info/abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz`)}> abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz !"§ $%&
+ navigate(`/did-info/abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz`)}> abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz !"§ $%&
+
copyToClipboard(transaction.sender)}/>
Deployer
+
navigate(`/did-info/abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz`)}> abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz
+
copyToClipboard(transaction.sender)}/>
Creator
-
- navigate(`/did-info/abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz`)}> abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz !"§ $%&
+
+ navigate(`/did-info/abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz`)}> abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz !"§ $%&
+
copyToClipboard(transaction.sender)}/>
@@ -186,7 +192,12 @@ import ToastBox from "../components/ToastBox";
textOverflow={"ellipsis"}
isTruncated
cursor={"pointer"} fontSize={"sm"} pb={3} color={colorMode === "light" ? "#230A79" : "#B09AFF"}>
+
bafybmibqle4w7k6acjbznk6ksapiyfwff6vwbwyaqx25wmzagt3awzbeky
+
copyToClipboard(transaction.sender)}/>
@@ -194,11 +205,14 @@ import ToastBox from "../components/ToastBox";
Pledge Token
-
- bafybmibqle4w7k6acjbznk6ksapiyfwff6vwbwyaqx25wmzagt3awzbeky
+
+ bafybmibqle4w7k6acjbznk6ksapiyfwff6vwbwyaqx25wmzagt3awzbeky
+
copyToClipboard(transaction.sender)}/>
diff --git a/src/pages/SubnetIdOverview.jsx b/src/pages/SubnetIdOverview.jsx
index 7370736..48afa3d 100644
--- a/src/pages/SubnetIdOverview.jsx
+++ b/src/pages/SubnetIdOverview.jsx
@@ -31,7 +31,7 @@ const SubnetInner = () => {
});
})
.catch((err) => {
- console.error("Failed to copy text: ", err);
+ console.error("Failed to copy text: ", err);
});
}
@@ -40,11 +40,11 @@ const SubnetInner = () => {
-
+
Subnet ID - {params?.id}
@@ -59,7 +59,7 @@ const SubnetInner = () => {
{
templateColumns="10% 90%"
gap={0}
>
-
+
{index + 1}.
diff --git a/src/pages/Transaction.jsx b/src/pages/Transaction.jsx
index e4a0e39..e349986 100644
--- a/src/pages/Transaction.jsx
+++ b/src/pages/Transaction.jsx
@@ -49,7 +49,7 @@ const Transaction = () => {
Transaction ID
- abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz !"§ $%&
+ abc5def6ghi7jkl8mno9pqrs2tuv5wxyzabcdefghijklmnopqrs5674577tuvwxyz
copyToClipboard(transaction.sender)}/>
diff --git a/src/pages/Transaction/TransactionDetails.jsx b/src/pages/Transaction/TransactionDetails.jsx
index 127b380..887ac57 100644
--- a/src/pages/Transaction/TransactionDetails.jsx
+++ b/src/pages/Transaction/TransactionDetails.jsx
@@ -77,15 +77,22 @@ const TransactionDetails = () => {
Transaction ID
-
-
- {filteredData?.description}
+
+
+
+ {filteredData?.description}
+
{
alignItems={"center"}
color={colorMode === "light" ? "#230A79" : "#B09AFF"}
textDecoration={"underline"}
- whiteSpace={"nowrap"}
- textOverflow={"ellipsis"}
- isTruncated
- cursor={"pointer"}
>
- {filteredData?.receiver}
+ {filteredData?.receiver}
{
pb={3}
color={colorMode === "light" ? "#230A79" : "#B09AFF"}
>
-
+ cursor={"pointer"}
+ >
{filteredData?.sender}
{
pb={3}
color={colorMode === "light" ? "#230A79" : "#B09AFF"}
>
- {
pb={3}
color={colorMode === "light" ? "#230A79" : "#B09AFF"}
>
-