From f602f73a3c28025102ae55e555015885e8d37381 Mon Sep 17 00:00:00 2001 From: YasinShaikh123 <123150391+YasinShaikh123@users.noreply.github.com> Date: Mon, 21 Oct 2024 17:23:35 +0530 Subject: [PATCH] working TransDetails --- dev-dist/sw.js | 2 +- src/Services/api.service.js | 9 +- src/components/Pagination.jsx | 22 +++- src/pages/MainNetIdOverview.jsx | 7 +- src/pages/SmartContract.jsx | 34 +----- src/pages/Transaction/TransactionDetails.jsx | 98 +++------------- src/pages/Transaction/TransactionTable.jsx | 116 ++++++++----------- 7 files changed, 100 insertions(+), 188 deletions(-) diff --git a/dev-dist/sw.js b/dev-dist/sw.js index d76fd73..15aeba9 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.4ngos72cbag" + "revision": "0.0iof9eg3rjg" }], {}); workbox.cleanupOutdatedCaches(); workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), { diff --git a/src/Services/api.service.js b/src/Services/api.service.js index f5a6eb3..01494dd 100644 --- a/src/Services/api.service.js +++ b/src/Services/api.service.js @@ -28,7 +28,11 @@ export const rubix = createApi({ providesTags: ["getTransAll"], }), - + getTransById: builder.query({ + query: (id) => + `/api/Transaction/GetById/${id}`, + providesTags: ["getTransAll"], + }), @@ -36,5 +40,6 @@ export const rubix = createApi({ }); export const { useGetTransCountQuery, - useGetTransAllQuery + useGetTransAllQuery, + useGetTransByIdQuery, } = rubix; diff --git a/src/components/Pagination.jsx b/src/components/Pagination.jsx index 1f98df0..289504d 100644 --- a/src/components/Pagination.jsx +++ b/src/components/Pagination.jsx @@ -50,10 +50,11 @@ const Pagination = ({ }; return ( - + - Rows per page : + Rows per page : + + + + +