diff --git a/packages/frontend/src/components/documents/DocumentsListItem.js b/packages/frontend/src/components/documents/DocumentsListItem.js
index caa673e47..fa9cacc57 100644
--- a/packages/frontend/src/components/documents/DocumentsListItem.js
+++ b/packages/frontend/src/components/documents/DocumentsListItem.js
@@ -1,4 +1,4 @@
-import {Link} from 'react-router-dom';
+import Link from 'next/link'
import './DocumentsListItem.scss'
@@ -7,7 +7,7 @@ export default function DocumentsListItem({document}) {
return (
diff --git a/packages/frontend/src/components/identities/IdentitiesListItem.js b/packages/frontend/src/components/identities/IdentitiesListItem.js
index 806b7c6ff..c711bc456 100644
--- a/packages/frontend/src/components/identities/IdentitiesListItem.js
+++ b/packages/frontend/src/components/identities/IdentitiesListItem.js
@@ -1,4 +1,4 @@
-import {Link} from "react-router-dom";
+import Link from 'next/link'
import './IdentitiesListItem.scss'
@@ -7,7 +7,7 @@ function IdentitiesListItem ({identity}) {
return (
diff --git a/packages/frontend/src/components/modalWindow/ModalWindow.scss b/packages/frontend/src/components/modalWindow/ModalWindow.scss
new file mode 100644
index 000000000..57f6790e7
--- /dev/null
+++ b/packages/frontend/src/components/modalWindow/ModalWindow.scss
@@ -0,0 +1,39 @@
+.modal {
+ position: fixed;
+ bottom: 0;
+ right: 0;
+ top: 0;
+ left: 0;
+ z-index: 9999;
+ }
+
+ .modal_container {
+ display: flex;
+ justify-content: center;
+ align-items:center;
+ height: 100%;
+ background-color: rgba(0, 0, 0, 0.8);
+ }
+
+ .modal_message {
+ display: flex;
+ position: relative;
+ justify-content: center;
+ align-items: center;
+ height: 30%;
+ min-width: 300px;
+ color: black;
+ background-color: rgb(101, 80, 11);
+ }
+
+ .modal_close {
+ position: absolute;
+ top: 0;
+ right: 0;
+ font-size: 20pt;
+ padding: 10px;
+ }
+
+ .modal_close:hover {
+ cursor: pointer;
+ }
\ No newline at end of file
diff --git a/packages/frontend/src/components/ModalWindow.js b/packages/frontend/src/components/modalWindow/index.js
similarity index 88%
rename from packages/frontend/src/components/ModalWindow.js
rename to packages/frontend/src/components/modalWindow/index.js
index 51e378259..adf527929 100644
--- a/packages/frontend/src/components/ModalWindow.js
+++ b/packages/frontend/src/components/modalWindow/index.js
@@ -1,5 +1,4 @@
-import "./root.css";
-import React, {useState} from 'react';
+import "./ModalWindow.scss"
export default function ModalWindow({open, text, setShowModal}) {
diff --git a/packages/frontend/src/components/navbar/Navbar.js b/packages/frontend/src/components/navbar/Navbar.js
index 9d968b3b2..90df30d6f 100644
--- a/packages/frontend/src/components/navbar/Navbar.js
+++ b/packages/frontend/src/components/navbar/Navbar.js
@@ -35,6 +35,7 @@ const NavLink = (props) => {
textDecoration: 'none',
bg: useColorModeValue('brand.deep', 'brand.deep'),
}}
+ color={'white'}
href={to}>
{children}
diff --git a/packages/frontend/src/components/pagination/index.js b/packages/frontend/src/components/pagination/index.js
new file mode 100644
index 000000000..ca20c2125
--- /dev/null
+++ b/packages/frontend/src/components/pagination/index.js
@@ -0,0 +1,32 @@
+import './pagination.scss'
+
+import ReactPaginate from 'react-paginate'
+
+function Pagination ({onPageChange, pageCount, forcePage}) {
+ const forcePageProp = forcePage ? { forcePage: forcePage } : {}
+
+ return (
+
+ )
+}
+
+export default Pagination
\ No newline at end of file
diff --git a/packages/frontend/src/components/pagination/pagination.scss b/packages/frontend/src/components/pagination/pagination.scss
new file mode 100644
index 000000000..04e7b1778
--- /dev/null
+++ b/packages/frontend/src/components/pagination/pagination.scss
@@ -0,0 +1,65 @@
+.pagination {
+ display: flex;
+ justify-content: center;
+ list-style: none;
+ padding: 0;
+}
+
+.page-item {
+ padding: 1px 4px 2px;
+ margin: 0 2px;
+ cursor: pointer;
+ font-size: 14pt;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ text-align: center;
+ border-radius: 5px;
+}
+
+.page-item:hover:not(.disabled) {
+ background-color: #ffffff10;
+}
+
+.page-item--next,
+.page-item--previous {
+ display: inline-block;
+ width: 22px;
+ padding: 0px 2px 2px;
+ border: 1px solid #ffffff75;
+ border-radius: 5px;
+ user-select: none;
+}
+
+.page-item--next:hover:not(.disabled),
+.page-item--previous:hover:not(.disabled) {
+ border: 1px solid #ffffff;
+ background-color: #ffffff15;
+}
+
+.page-link {
+ position: relative;
+}
+
+.page-item.disabled {
+ cursor: default;
+ opacity: .3;
+}
+
+.active, .active:hover {
+ background-color: var(--chakra-colors-gray-800);
+}
+
+.page-item.active:hover {
+ cursor: default;
+}
+
+.page-item--break-link {
+ padding: 1px 2px 2px;
+ margin: 0;
+}
+
+@media screen and (max-width: 440px) {
+ .page-item:not(.active):not(.page-item--previous):not(.page-item--next) {
+ display: none;
+ }
+}
\ No newline at end of file
diff --git a/packages/frontend/src/components/root.css b/packages/frontend/src/components/root.css
deleted file mode 100644
index 5a841f420..000000000
--- a/packages/frontend/src/components/root.css
+++ /dev/null
@@ -1,68 +0,0 @@
-/* Add a black background color to the top navigation bar */
-.topnav {
- overflow: hidden;
- background-color: black;
-}
-
-/* Style the links inside the navigation bar */
-.topnav a {
- float: left;
- display: block;
- color: white;
- text-align: center;
- padding: 14px 16px;
- text-decoration: none;
- font-size: 17px;
-}
-
-/* Change the color of links on hover */
-.topnav a:hover {
- background-color: #1a491c;
- color: black;
-}
-
-/* Style the "active" element to highlight the current page */
-.topnav a.active {
- background-color: #2196F3;
- color: white;
-}
-
-/* Style the search box inside the navigation bar */
-.topnav input[type=text] {
- float: right;
- padding: 6px;
- border: none;
- min-width: 400px;
- border-radius: 5px;
- margin-top: 8px;
- margin-right: 16px;
- font-size: 20px;
- background-color: #1a491c;
- color: black;
-}
-
-.topnav input[type=text]:focus {
- outline: none;
-}
-
-::placeholder {
- color: black;
- opacity: 0.5
-}
-
-/* When the screen is less than 600px wide, stack the links and the search field vertically instead of horizontally */
-@media screen and (max-width: 600px) {
- .topnav a, .topnav input[type=text] {
- float: none;
- display: block;
- text-align: left;
- width: 100%;
- margin: 0;
- padding: 14px;
- min-width: auto;
- box-sizing: border-box;
- }
- .topnav input[type=text] {
- border: 1px solid #ccc;
- }
-}
diff --git a/packages/frontend/src/components/search/GlobalSearchInput.js b/packages/frontend/src/components/search/GlobalSearchInput.js
index efe35d765..8493eca88 100644
--- a/packages/frontend/src/components/search/GlobalSearchInput.js
+++ b/packages/frontend/src/components/search/GlobalSearchInput.js
@@ -1,14 +1,11 @@
-import React, {useState} from 'react';
-import {useNavigate} from "react-router-dom";
-import ModalWindow from "../ModalWindow";
+import { useState } from 'react'
+import ModalWindow from "../modalWindow"
import * as Api from '../../util/Api'
import { Input, InputGroup, InputRightElement, Button } from '@chakra-ui/react'
import { SearchIcon } from '@chakra-ui/icons'
-
+import { redirect } from 'next/navigation'
function GlobalSearchInput () {
- let navigate = useNavigate();
-
const [showModal, setShowModal] = useState(false)
const [modalText, setModalText] = useState("false")
@@ -33,22 +30,22 @@ function GlobalSearchInput () {
if (searchResult?.block) {
// redirect to blocks
setSearchQuery("")
- return navigate(`/block/${searchResult?.block.header.hash}`)
+ redirect(`/block/${searchResult?.block.header.hash}`)
}
if (searchResult?.transaction) {
setSearchQuery("")
- return navigate(`/transaction/${searchResult?.transaction.hash}`)
+ redirect(`/transaction/${searchResult?.transaction.hash}`)
}
if (searchResult?.dataContract) {
setSearchQuery("")
- return navigate(`/dataContract/${searchResult?.dataContract.identifier}`)
+ redirect(`/dataContract/${searchResult?.dataContract.identifier}`)
}
if (searchResult?.document) {
setSearchQuery("")
- return navigate(`/document/${searchResult?.document.identifier}`)
+ redirect(`/document/${searchResult?.document.identifier}`)
}
showModalWindow('Not found', 6000)
@@ -81,8 +78,14 @@ function GlobalSearchInput () {
bg='gray.900'
/>
-
diff --git a/packages/frontend/src/components/transactions/TransactionsList.js b/packages/frontend/src/components/transactions/TransactionsList.js
index b0590211b..a14f18066 100644
--- a/packages/frontend/src/components/transactions/TransactionsList.js
+++ b/packages/frontend/src/components/transactions/TransactionsList.js
@@ -1,7 +1,8 @@
+'use client'
+
import TransactionsListItem from './TransactionsListItem'
import './TransactionsList.scss'
-
export default function TransactionsList({transactions = [], size='l'}) {
return (
@@ -22,5 +23,5 @@ export default function TransactionsList({transactions = [], size='l'}) {
- );
+ )
}
diff --git a/packages/frontend/src/components/transactions/TransactionsListItem.js b/packages/frontend/src/components/transactions/TransactionsListItem.js
index 0025bfb59..868d37b1b 100644
--- a/packages/frontend/src/components/transactions/TransactionsListItem.js
+++ b/packages/frontend/src/components/transactions/TransactionsListItem.js
@@ -1,15 +1,17 @@
-import {Link} from 'react-router-dom'
+'use client'
+
+import Link from 'next/link'
import {getTransitionTypeString} from '../../util/index'
import './TransactionsListItem.scss'
function TransactionsListItem({ transaction }) {
- const hash = typeof transaction === 'object' ? transaction.hash : transaction;
+ const hash = typeof transaction === 'object' ? transaction.hash : transaction
const {timestamp, type} = transaction
return (
@@ -35,4 +37,4 @@ function TransactionsListItem({ transaction }) {
)
}
-export default TransactionsListItem;
\ No newline at end of file
+export default TransactionsListItem
\ No newline at end of file
diff --git a/packages/frontend/src/components/transfers/TransfersListItem.js b/packages/frontend/src/components/transfers/TransfersListItem.js
index 5e3756f67..f07181578 100644
--- a/packages/frontend/src/components/transfers/TransfersListItem.js
+++ b/packages/frontend/src/components/transfers/TransfersListItem.js
@@ -1,4 +1,3 @@
-import {Link} from 'react-router-dom'
import { Box, Tag } from '@chakra-ui/react'
import { ArrowForwardIcon, ArrowBackIcon } from '@chakra-ui/icons'
import './TransfersListItem.scss'
diff --git a/packages/frontend/src/index.css b/packages/frontend/src/index.css
deleted file mode 100644
index 5221317ce..000000000
--- a/packages/frontend/src/index.css
+++ /dev/null
@@ -1,146 +0,0 @@
-body {
- margin: 0;
- background-color: black;
- color: white;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
- sans-serif;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-code {
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
- monospace;
-}
-
-.container {
- display: flex;
- justify-content: center;
- align-content: center;
- height: 100%;
- margin: 0;
- align-items: center;
- flex-flow: column;
- padding: 10px;
-}
-
-.modal {
- position: fixed;
- bottom: 0;
- right: 0;
- top: 0;
- left: 0;
- z-index: 9999;
-}
-
-.modal_container {
- display: flex;
- justify-content: center;
- align-items:center;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.8);
-}
-
-.modal_message {
- display: flex;
- position: relative;
- justify-content: center;
- align-items: center;
- height: 30%;
- min-width: 300px;
- color: black;
- background-color: rgb(101, 80, 11);
-}
-
-.modal_close {
- position: absolute;
- top: 0;
- right: 0;
- font-size: 20pt;
- padding: 10px;
-}
-
-.modal_close:hover {
- cursor: pointer;
-}
-
-.pagination {
- display: flex;
- justify-content: center;
- list-style: none;
- padding: 0;
-}
-
-.page-item {
- padding: 1px 4px 2px;
- margin: 0 2px;
- cursor: pointer;
- font-size: 14pt;
- -webkit-user-select: none;
- -ms-user-select: none;
- text-align: center;
- border-radius: 5px;
-}
-
-.page-item:hover:not(.disabled) {
- background-color: #ffffff10;
-}
-
-.page-item--next,
-.page-item--previous {
- display: inline-block;
- width: 22px;
- padding: 0px 2px 2px;
- border: 1px solid #ffffff75;
- border-radius: 5px;
- user-select: none;
-}
-
-.page-item--next:hover:not(.disabled),
-.page-item--previous:hover:not(.disabled) {
- border: 1px solid #ffffff;
- background-color: #ffffff15;
-}
-
-.page-link {
- position: relative;
-}
-
-.page-item.disabled {
- cursor: default;
- opacity: .3;
-}
-
-.active, .active:hover {
- background-color: var(--chakra-colors-gray-800);
-}
-
-.page-item.active:hover {
- cursor: default;
-}
-
-.page-item--break-link {
- padding: 1px 2px 2px;
- margin: 0;
-}
-
-.disabled {
- display: none;
-}
-
-.noselect {
- -webkit-touch-callout: none;
- -webkit-user-select: none;
- -khtml-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
-}
-
-@media screen and (max-width: 440px) {
- .page-item:not(.active):not(.page-item--previous):not(.page-item--next) {
- display: none;
- }
-
-}
diff --git a/packages/frontend/src/index.js b/packages/frontend/src/index.js
deleted file mode 100644
index d4c711f6d..000000000
--- a/packages/frontend/src/index.js
+++ /dev/null
@@ -1,90 +0,0 @@
-import React from 'react';
-import ReactDOM from 'react-dom/client';
-import './index.css';
-import {
- createBrowserRouter,
- RouterProvider,
-} from "react-router-dom";
-import reportWebVitals from './reportWebVitals';
-import HomeRoute, {loader as homeLoader} from "./routes/home/home.route";
-import BlockRoute, {
- loader as blockLoader,
-} from "./routes/block/block.route";
-import ErrorPage from "./routes/error/error.route";
-import RootComponent from "./components/RootComponent";
-import BlocksRoute, {loader as blocksLoader} from "./routes/blocks/blocks.route";
-import TransactionRoute, {
- loader as transactionLoader,
-} from "./routes/transaction/transaction.route";
-import DataContractRoute, {loader as dataContractLoader} from "./routes/dataContract/data.contract.route";
-import DataContractsRoute from "./routes/dataContracts/data.contracts.route";
-import DocumentRoute, {loader as documentLoader} from "./routes/document/document.route";
-import IdentityRoute, {loader as identityLoader} from "./routes/identity/identity.route";
-import IdentitiesRoute, {loader as identitiesLoader} from "./routes/identities/identities.route";
-
-
-const router = createBrowserRouter([
- {
- path: "/",
- element:
,
- errorElement:
,
- children: [
- {
- index: true,
- element:
,
- loader: homeLoader,
- },
- {
- path: "blocks",
- element:
,
- loader: blocksLoader,
- },
- {
- path: "block/:hash",
- element:
,
- loader: blockLoader,
- },
- {
- path: "transaction/:txHash",
- element:
,
- loader: transactionLoader,
- },
- {
- path: "dataContract/:identifier",
- element:
,
- loader: dataContractLoader,
- },
- {
- path: "dataContracts",
- element:
,
- },
- {
- path: "document/:identifier",
- element:
,
- loader: documentLoader,
- },
- {
- path: "identities",
- element:
,
- loader: identitiesLoader,
- },
- {
- path: "identity/:identifier",
- element:
,
- loader: identityLoader,
- },
- ]
- }
-]);
-
-const root = ReactDOM.createRoot(document.getElementById('root'));
-root.render(
-
-
-
-);
-
-// If you want to start measuring performance in your app, pass a function
-// to log results (for example: reportWebVitals(console.log))
-// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
-reportWebVitals();
diff --git a/packages/frontend/src/routes/dataContracts/data.contracts.route.js b/packages/frontend/src/routes/dataContracts/data.contracts.route.js
deleted file mode 100644
index 7965066e1..000000000
--- a/packages/frontend/src/routes/dataContracts/data.contracts.route.js
+++ /dev/null
@@ -1,50 +0,0 @@
-import React, {useEffect, useState} from 'react'
-import * as Api from '../../util/Api'
-import DataContractsList from '../../components/dataContracts/DataContractsList'
-
-import {
- Container,
- Heading,
-} from '@chakra-ui/react'
-
-function DataContractsRoute() {
- const [dataContracts, setDataContracts] = useState(null)
- const [loading, setLoading] = useState(null)
- const [error, setError] = useState(null)
-
- useEffect(() => {
- Api.getDataContracts(1, 30)
- .then((dataContracts) => setDataContracts(dataContracts.resultSet))
- .catch((err) => {
- setError(err)
- })
- .finally(() => setLoading(false))
- }, [])
-
- return (
-
- {error &&
Error {error}
}
- {loading &&
Loading data contracts from API
}
-
- {dataContracts &&
-
-
- Data contracts
-
-
-
-
- }
-
-
- );
-}
-
-export default DataContractsRoute;
diff --git a/packages/frontend/src/routes/home/home.css b/packages/frontend/src/routes/home/home.css
deleted file mode 100644
index 8822fc30c..000000000
--- a/packages/frontend/src/routes/home/home.css
+++ /dev/null
@@ -1,19 +0,0 @@
-.status {
- display: flex;
- flex-flow: column;
- background-color: #491a1a;
- padding: 10px;
- min-width: 300px;
-}
-
-.status_item {
- display: flex;
- justify-content: space-between;
-}
-
-@media screen and (max-width: 350px) {
- .status {
- width: calc(100% - 20px);
- min-width: auto;
- }
-}
diff --git a/packages/frontend/src/routes/home/home.route.js b/packages/frontend/src/routes/home/home.route.js
deleted file mode 100644
index c426fae6a..000000000
--- a/packages/frontend/src/routes/home/home.route.js
+++ /dev/null
@@ -1,142 +0,0 @@
-import React from 'react'
-import * as Api from '../../util/Api'
-import './home.css'
-import {useLoaderData} from 'react-router-dom'
-import TransactionsList from '../../components/transactions/TransactionsList'
-
-import {
- Box,
- Text,
- Container,
- Heading,
- Flex,
- Stack,
- StackDivider
-} from '@chakra-ui/react'
-
-
-export async function loader({}) {
- const [status, paginatedTransactions] = await Promise.all([
- Api.getStatus(),
- Api.getTransactions(1, 25, 'desc')
- ])
-
- const transactions = paginatedTransactions.resultSet
-
- return {status, transactions}
-}
-
-function HomeRoute() {
- const {status, transactions} = useLoaderData();
-
- const {
- tenderdashVersion,
- network,
- appVersion,
- blocksCount,
- blockTimeAverage,
- dataContractsCount,
- documentsCount,
- transfersCount,
- txCount
- } = status
-
- return (
-
-
- }
- >
-
-
-
- Network:
- {network}
-
-
-
- Tenderdash Version:
- {tenderdashVersion}
-
-
-
- App Version:
- {appVersion}
-
-
-
-
-
-
-
- Average block time:
- {Math.ceil(blockTimeAverage)} sec.
-
-
-
- Blocks:
- {blocksCount}
-
-
-
- Transactions:
- {txCount}
-
-
-
-
-
-
-
- Data contracts:
- {dataContractsCount}
-
-
-
- Documents:
- {documentsCount}
-
-
-
- Transfers:
- {transfersCount}
-
-
-
-
-
-
-
-
- Last transaction
-
-
-
-
-
- );
-}
-
-export default HomeRoute;
diff --git a/packages/frontend/src/routes/identities/identities.route.js b/packages/frontend/src/routes/identities/identities.route.js
deleted file mode 100644
index 7ad0cdbd3..000000000
--- a/packages/frontend/src/routes/identities/identities.route.js
+++ /dev/null
@@ -1,41 +0,0 @@
-import {useLoaderData} from 'react-router-dom'
-import * as Api from '../../util/Api'
-import './identities.scss'
-import IdentitiesList from '../../components/identities/IdentitiesList'
-
-import {
- Container,
- Heading,
-} from '@chakra-ui/react'
-
-
-export async function loader({params}) {
- const {identifier} = params
-
- return await Api.getIdentities(identifier);
-}
-
-function IdentitiesRoute() {
- const identities = useLoaderData().resultSet;
-
- return (
-
-
- Identities
-
-
-
-
-
- );
-}
-
-export default IdentitiesRoute;
diff --git a/packages/frontend/src/routes/identities/identities.scss b/packages/frontend/src/routes/identities/identities.scss
deleted file mode 100644
index 8c6dfbeaf..000000000
--- a/packages/frontend/src/routes/identities/identities.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.identity {
-
-}
\ No newline at end of file
diff --git a/packages/frontend/src/styles/mixins.scss b/packages/frontend/src/styles/mixins.scss
index 9d6ae9ff0..b5e0f9ea3 100644
--- a/packages/frontend/src/styles/mixins.scss
+++ b/packages/frontend/src/styles/mixins.scss
@@ -6,7 +6,7 @@
padding: 6px 8px;
margin-bottom: 1px;
line-height: 24px;
- border-bottom: 1px solid var(--chakra-colors-chakra-border-color);
+ border-bottom: 1px solid var(--chakra-colors-gray-800);
color: var(--chakra-colors-gray-100);
font-family: monospace;
font-size: 12pt;
@@ -16,4 +16,8 @@
text-decoration: none;
cursor: pointer;
}
+
+ &:last-child {
+ border-bottom: none;
+ }
}
\ No newline at end of file
diff --git a/packages/frontend/src/styles/theme.js b/packages/frontend/src/styles/theme.js
index c3b8f025f..3cb31694e 100644
--- a/packages/frontend/src/styles/theme.js
+++ b/packages/frontend/src/styles/theme.js
@@ -1,7 +1,11 @@
import { extendTheme } from '@chakra-ui/react'
export const theme = extendTheme( {
- initialColorMode: 'light',
+ config: {
+ useSystemColorMode: false,
+ initialColorMode: 'dark',
+ },
+ initialColorMode: 'dark',
useSystemColorMode: false,
colors: {
brand: {
@@ -23,9 +27,13 @@ export const theme = extendTheme( {
},
styles: {
global: {
+ '*' : {
+ borderColor: 'gray.800'
+ },
'html, body': {
background: '#181d20',
- },
+ color: 'white'
+ }
},
},
components: {
@@ -42,8 +50,6 @@ export const theme = extendTheme( {
}
}
}
-});
-
-localStorage.setItem('chakra-ui-color-mode', 'dark');
+})
-export default theme;
\ No newline at end of file
+export default theme
\ No newline at end of file
diff --git a/packages/frontend/src/styles/theme.scss b/packages/frontend/src/styles/theme.scss
index 8ba74539b..5a30d1226 100644
--- a/packages/frontend/src/styles/theme.scss
+++ b/packages/frontend/src/styles/theme.scss
@@ -1,3 +1,7 @@
+* {
+ border-color: var(--chakra-colors-gray-800);
+}
+
.InfoBlock {
position: relative;
padding: var(--chakra-space-3);
@@ -37,4 +41,21 @@
}
}
}
+}
+
+.ListNavigation {
+ margin-top: 10px;
+}
+
+.disabled {
+ display: none;
+}
+
+.noselect {
+ -webkit-touch-callout: none;
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
}
\ No newline at end of file
diff --git a/packages/frontend/src/util/Api.js b/packages/frontend/src/util/Api.js
index eb79fdc33..3f3c972f2 100644
--- a/packages/frontend/src/util/Api.js
+++ b/packages/frontend/src/util/Api.js
@@ -1,4 +1,4 @@
-const BASE_URL = process.env.REACT_APP_API_BASE_URL
+const BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL
const fetchWrapper = (url, options) => {
return new Promise((resolve, reject) => {
@@ -98,8 +98,8 @@ const getIdentity = (identifier) => {
return call(`identity/${identifier}`, 'GET')
}
-const getIdentities = () => {
- return call(`identities`, 'GET')
+const getIdentities = (page = 1, limit = 30, order = 'asc') => {
+ return call(`identities?page=${page}&limit=${limit}&order=${order}`, 'GET')
}
const getStatus = () => {
diff --git a/packages/frontend/src/util/index.js b/packages/frontend/src/util/index.js
index 03a3d24c4..37cec2e61 100644
--- a/packages/frontend/src/util/index.js
+++ b/packages/frontend/src/util/index.js
@@ -1,4 +1,4 @@
-import {StateTransitionEnum} from "../routes/enums/state.transition.type";
+import {StateTransitionEnum} from "../app/enums/state.transition.type";
const getTransitionTypeString = (id) => {
const [stateTransitionType] = Object.entries(StateTransitionEnum)