diff --git a/package-lock.json b/package-lock.json
index ecad85e6..b65ccda9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -11,7 +11,7 @@
"@hathor/wallet-lib": "1.8.0",
"@unleash/proxy-client-react": "1.0.4",
"axios": "1.7.2",
- "bootstrap": "4.6.2",
+ "bootstrap": "5.3.3",
"d3-selection": "3.0.0",
"d3-zoom": "3.0.0",
"font-awesome": "4.7.0",
@@ -2706,6 +2706,17 @@
"node": ">= 6"
}
},
+ "node_modules/@popperjs/core": {
+ "version": "2.11.8",
+ "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
+ "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
+ "license": "MIT",
+ "peer": true,
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/popperjs"
+ }
+ },
"node_modules/@react-native-community/cli": {
"version": "12.3.0",
"resolved": "https://registry.npmjs.org/@react-native-community/cli/-/cli-12.3.0.tgz",
@@ -7144,9 +7155,9 @@
"integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww=="
},
"node_modules/bootstrap": {
- "version": "4.6.2",
- "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.6.2.tgz",
- "integrity": "sha512-51Bbp/Uxr9aTuy6ca/8FbFloBUJZLHwnhTcnjIeRn2suQWsWzcuJhGjKDB5eppVte/8oCdOL3VuwxvZDUggwGQ==",
+ "version": "5.3.3",
+ "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.3.tgz",
+ "integrity": "sha512-8HLCdWgyoMguSO9o+aH+iuZ+aht+mzW0u3HIMzVu7Srrpv7EBBxTnrFlSCskwdY1+EOFQSm7uMJhNQHkdPcmjg==",
"funding": [
{
"type": "github",
@@ -7157,9 +7168,9 @@
"url": "https://opencollective.com/bootstrap"
}
],
+ "license": "MIT",
"peerDependencies": {
- "jquery": "1.9.1 - 3",
- "popper.js": "^1.16.1"
+ "@popperjs/core": "^2.11.8"
}
},
"node_modules/brace-expansion": {
diff --git a/package.json b/package.json
index 4e38e9ad..e2271a11 100644
--- a/package.json
+++ b/package.json
@@ -10,7 +10,7 @@
"@hathor/wallet-lib": "1.8.0",
"@unleash/proxy-client-react": "1.0.4",
"axios": "1.7.2",
- "bootstrap": "4.6.2",
+ "bootstrap": "5.3.3",
"d3-selection": "3.0.0",
"d3-zoom": "3.0.0",
"font-awesome": "4.7.0",
diff --git a/src/components/AddressHistory.js b/src/components/AddressHistory.js
index 99faa7d4..7eb64651 100644
--- a/src/components/AddressHistory.js
+++ b/src/components/AddressHistory.js
@@ -95,13 +95,13 @@ class AddressHistory extends SortableTable {
if (tx.version === hathorLib.constants.CREATE_TOKEN_TX_VERSION) {
statusElement = (
- Token creation
+ Token creation
);
} else {
statusElement = (
- Received
+ Received
);
}
@@ -110,13 +110,13 @@ class AddressHistory extends SortableTable {
if (tx.version === hathorLib.constants.CREATE_TOKEN_TX_VERSION) {
statusElement = (
- Token deposit
+ Token deposit
);
} else {
statusElement = (
- Sent
+ Sent
);
}
@@ -136,20 +136,20 @@ class AddressHistory extends SortableTable {
}
return (
this.props.onRowClicked(tx.tx_id)}>
-
+ |
{hathorLib.transactionUtils.getTxType(tx)}
|
-
+ |
{hathorLib.helpersUtils.getShortHash(tx.tx_id)}
|
-
+ |
{dateFormatter.parseTimestamp(tx.timestamp)}
|
{statusElement} |
{prettyValue}
|
-
+ |
{hathorLib.transactionUtils.getTxType(tx)}
{hathorLib.helpersUtils.getShortHash(tx.tx_id)}
diff --git a/src/components/AddressHistoryLegacy.js b/src/components/AddressHistoryLegacy.js
index 867dd328..c63c1802 100644
--- a/src/components/AddressHistoryLegacy.js
+++ b/src/components/AddressHistoryLegacy.js
@@ -99,7 +99,7 @@ class AddressHistory extends React.Component {
-
- Token creation
+ Token creation
);
} else {
statusElement = (
- Received
+ Received
);
}
@@ -188,13 +188,13 @@ class AddressHistory extends React.Component {
if (tx.version === hathorLib.constants.CREATE_TOKEN_TX_VERSION) {
statusElement = (
- Token deposit
+ Token deposit
);
} else {
statusElement = (
- Sent
+ Sent
);
}
@@ -213,13 +213,13 @@ class AddressHistory extends React.Component {
return (
this.props.onRowClicked(tx.tx_id)}>
-
+ |
{hathorLib.transactionUtils.getTxType(tx)}
|
-
+ |
{hathorLib.helpersUtils.getShortHash(tx.tx_id)}
|
-
+ |
{dateFormatter.parseTimestamp(tx.timestamp)}
|
{statusElement} |
@@ -227,7 +227,7 @@ class AddressHistory extends React.Component {
{prettyValue}
|
-
+ |
{hathorLib.transactionUtils.getTxType(tx)}
{hathorLib.helpersUtils.getShortHash(tx.tx_id)}
diff --git a/src/components/Navigation.js b/src/components/Navigation.js
index 98b3fde7..0e1765f8 100644
--- a/src/components/Navigation.js
+++ b/src/components/Navigation.js
@@ -58,7 +58,7 @@ function Navigation({ history }) {
return (
- |
diff --git a/src/components/token/TokenConfig.js b/src/components/token/TokenConfig.js
index 39861545..2e9178f0 100644
--- a/src/components/token/TokenConfig.js
+++ b/src/components/token/TokenConfig.js
@@ -71,7 +71,7 @@ const TokenConfig = props => {
{getShortConfigurationString()}
@@ -85,7 +85,7 @@ const TokenConfig = props => {
href="true"
>
Download
-
+
diff --git a/src/components/token/TokenMarkers.js b/src/components/token/TokenMarkers.js
index d01232f5..83f7d3ce 100644
--- a/src/components/token/TokenMarkers.js
+++ b/src/components/token/TokenMarkers.js
@@ -14,7 +14,7 @@ const TokenMarkers = props => {
}
return (
-
+
This is a verified token. Learn more.
@@ -37,7 +37,7 @@ const TokenMarkers = props => {
);
}
- return {banIcon};
+ return {banIcon};
};
return (
diff --git a/src/components/token/TokenRow.js b/src/components/token/TokenRow.js
index 830776c3..8c3e2f8c 100644
--- a/src/components/token/TokenRow.js
+++ b/src/components/token/TokenRow.js
@@ -24,13 +24,13 @@ class TokenRow extends React.Component {
render() {
return (
this.onRowClicked(this.props.token.uid)}>
-
+ |
{hathorLib.helpersUtils.getShortHash(this.props.token.uid)}
|
- {this.props.token.name} |
- {this.props.token.symbol} |
- {this.props.token.nft ? 'NFT' : 'Custom Token'} |
-
+ | {this.props.token.name} |
+ {this.props.token.symbol} |
+ {this.props.token.nft ? 'NFT' : 'Custom Token'} |
+
{dateFormatter.parseTimestamp(this.props.token.transaction_timestamp)}
|
diff --git a/src/components/token/TokenSearchField.js b/src/components/token/TokenSearchField.js
index 66ee3054..7aa77f69 100644
--- a/src/components/token/TokenSearchField.js
+++ b/src/components/token/TokenSearchField.js
@@ -8,7 +8,7 @@ class TokenSearchField extends React.Component {
{
return (
-
+
{txTokenBannedMessage}
);
diff --git a/src/components/tx/TxData.js b/src/components/tx/TxData.js
index 3278307f..5670d843 100644
--- a/src/components/tx/TxData.js
+++ b/src/components/tx/TxData.js
@@ -570,7 +570,7 @@ class TxData extends React.Component {
>
{this.props.transaction.parents && this.props.transaction.parents.length ? (
- this.toggleGraph(e, graphIndex)}>
+ this.toggleGraph(e, graphIndex)}>
{this.state.graphs[graphIndex].showNeighbors ? 'Click to hide' : 'Click to show'}
) : null}
@@ -708,7 +708,7 @@ class TxData extends React.Component {
const renderNCActions = () => {
const actionsCount = get(this.props.transaction, 'nc_context.actions.length', 0);
return (
-
+
@@ -733,7 +733,7 @@ class TxData extends React.Component {
return null;
}
return (
-
+
{' '}
@@ -789,7 +789,7 @@ class TxData extends React.Component {
-
+
{hathorLib.transactionUtils.getTxType(this.props.transaction)}{' '}
{isNFTCreation() && '(NFT)'}
@@ -886,7 +886,7 @@ class TxData extends React.Component {
renderNCActions()}
-
+
@@ -901,7 +901,7 @@ class TxData extends React.Component {
{this.state.tokens.length > 0 && renderTokenList()}
-
+
@@ -911,7 +911,7 @@ class TxData extends React.Component {
{this.props.meta.children.length > 0 && (
- this.toggleChildren(e)}>
+ this.toggleChildren(e)}>
{this.state.children ? 'Click to hide' : 'Click to show'}
)}
@@ -936,7 +936,7 @@ class TxData extends React.Component {
{this.state.raw ? (
-
+
) : null}
diff --git a/src/components/tx/TxMarkers.js b/src/components/tx/TxMarkers.js
index bc0356e8..69cd989b 100644
--- a/src/components/tx/TxMarkers.js
+++ b/src/components/tx/TxMarkers.js
@@ -21,7 +21,7 @@ const TxMarkers = props => {
}
return (
-
+
{tx.meta.context}
diff --git a/src/components/tx/TxRow.js b/src/components/tx/TxRow.js
index b9a588d8..e7484587 100644
--- a/src/components/tx/TxRow.js
+++ b/src/components/tx/TxRow.js
@@ -18,11 +18,11 @@ class TxRow extends React.Component {
render() {
return (
this.handleClickTr(this.props.tx.tx_id)}>
- {this.props.tx.tx_id} |
-
+ | {this.props.tx.tx_id} |
+
{dateFormatter.parseTimestamp(this.props.tx.timestamp)}
|
-
+ |
{hathorLib.helpersUtils.getShortHash(this.props.tx.tx_id)}{' '}
{dateFormatter.parseTimestamp(this.props.tx.timestamp)}
|
diff --git a/src/index.scss b/src/index.scss
index 384d7d6b..fc98b270 100644
--- a/src/index.scss
+++ b/src/index.scss
@@ -15,10 +15,14 @@ html, body, #root {
height: 100%;
width: 100%;
word-wrap: break-word;
+
+ // Keeping the same font family from Bootstrap 4
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
a {
color: $purpleHathor;
+ text-decoration: none; // Keeping style from Bootstrap 4
}
a:hover {
@@ -205,6 +209,29 @@ tr.tr-title {
cursor: default !important;
}
+// Class to keep the same visual aspect from Bootstrap 4
+.table {
+ thead {
+ tr {
+ border-top: 1px solid #dee2e6;
+ }
+ th {
+ border-bottom: 2px solid #dee2e6;
+ }
+ }
+
+ tbody {
+ tr.tr-title td {
+ background-color: rgb(242,242,242);
+ cursor: default !important;
+ }
+
+ td {
+ padding: 12px;
+ }
+ }
+}
+
tr.tr-title td {
font-weight: bold;
}
@@ -631,6 +658,7 @@ th.sortable {
background-color: transparent !important;
}
+
.source-code code {
background-color: #f2f2f2;
}
@@ -650,4 +678,4 @@ th.sortable {
.source-code.show {
height: auto !important;
opacity: 1 !important;
-}
\ No newline at end of file
+}
diff --git a/src/screens/Dag.js b/src/screens/Dag.js
index 3ea7efc1..815864b0 100644
--- a/src/screens/Dag.js
+++ b/src/screens/Dag.js
@@ -194,11 +194,11 @@ class Dag extends React.Component {
render() {
return (
|