Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# NEXT_PUBLIC_NETWORK_NAME=mainnet
# NEXT_PUBLIC_NETWORK_NAME=testnet
# NEXT_PUBLIC_NETWORK_NAME=devnet
# NEXT_PUBLIC_NETWORK_NAME=alphanet
# NEXT_PUBLIC_NETWORK_NAME=xahau
# NEXT_PUBLIC_NETWORK_NAME=xahau-testnet
# NEXT_PUBLIC_NETWORK_NAME=xahau-jshooks
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ In the project directory, you can run:

`NEXT_PUBLIC_NETWORK_NAME=mainnet yarn dev`

mainnet | staging | testnet | devnet | alphanet | xahau | xahau-testnet | xahau-jshooks
mainnet | staging | testnet | devnet | xahau | xahau-testnet | xahau-jshooks

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
Expand Down Expand Up @@ -64,7 +64,7 @@ Runs the app in production

`yarn build`

`PORT=3300 pm2 start /usr/bin/yarn --name alphanet-frontend-react -- start` // from inside the frontend-react directory
`pm2 start yarn --name "frontend-react" -- start` // otherwise: `-- start:next` or `PORT=3400 pm2 start /usr/bin/yarn --name "jshooks.xahau-frontend-react" -- start`

`pm2 logs frontend-react --lines 1000` //verify it runs properly

Expand Down
242 changes: 0 additions & 242 deletions components/Account/AccountWithTag.js

This file was deleted.

8 changes: 4 additions & 4 deletions components/Account/DexOrdersData.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ export default function DexOrdersData({ account, offerList, ledgerTimestamp, set
<td className="left">
<span className={sell ? 'red' : 'green'}>{sell ? 'Selling ' : 'Buying '}</span>
<span className="bold">
{amountFormat(sell ? offer.TakerGets : offer.TakerPays, { short: true, icon: true })}
{amountFormat(sell ? offer.TakerGets : offer.TakerPays, { precise: 'nice', icon: true })}
</span>
<span className="grey">{' for '}</span>
<span className="bold">
{amountFormat(sell ? offer.TakerPays : offer.TakerGets, { short: true, icon: true })}
{amountFormat(sell ? offer.TakerPays : offer.TakerGets, { precise: 'nice', icon: true })}
</span>
</td>
{sell ? (
Expand Down Expand Up @@ -210,7 +210,7 @@ export default function DexOrdersData({ account, offerList, ledgerTimestamp, set
The last 5 DEX orders{historicalTitle} [
<a href={`/account/${address}/dex`} className="link">
View all ({offerList.length} total)
</a>
</a>{' '}
]
</>
) : (
Expand All @@ -224,7 +224,7 @@ export default function DexOrdersData({ account, offerList, ledgerTimestamp, set
)}
</center>
<br />
<table className="table-mobile">
<table className="table-mobile wide">
<tbody>
<tr>
<th>#</th>
Expand Down
6 changes: 3 additions & 3 deletions components/Account/EscrowData.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default function EscrowData({ setSignRequest, address, escrowList, ledger
{historicalTitle}
</center>
<br />
<table className="table-mobile">
<table className="table-mobile wide">
<tbody>{escrowListNode(receivedEscrowList, { type: 'received', mobile: true })}</tbody>
</table>
</div>
Expand All @@ -205,7 +205,7 @@ export default function EscrowData({ setSignRequest, address, escrowList, ledger
{historicalTitle}
</center>
<br />
<table className="table-mobile">
<table className="table-mobile wide">
<tbody>{escrowListNode(sentEscrowList, { type: 'sent', mobile: true })}</tbody>
</table>
</div>
Expand All @@ -231,7 +231,7 @@ export default function EscrowData({ setSignRequest, address, escrowList, ledger
{historicalTitle}
</center>
<br />
<table className="table-mobile">
<table className="table-mobile wide">
<tbody>{escrowListNode(selfEscrowList, { type: 'self', mobile: true })}</tbody>
</table>
</div>
Expand Down
11 changes: 8 additions & 3 deletions components/Account/IOUData.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
shortNiceNumber,
amountFormat,
fullNiceNumber,
CurrencyWithIcon
AddressWithIconFilled
} from '../../utils/format'
import { objectsCountText, useWidth } from '../../utils'
import { FaSnowflake, FaLock, FaIcicles, FaShieldAlt, FaInfoCircle } from 'react-icons/fa'
Expand Down Expand Up @@ -246,7 +246,12 @@ export default function IOUData({
{i + 1}
</td>
<td className="left">
<CurrencyWithIcon token={{ ...tl.Balance, ...issuer }} />
<AddressWithIconFilled
data={issuer}
name="issuer"
currency={tl.Balance?.currency}
options={{ short: true, currencyDetails: tl.Balance?.currencyDetails }}
/>
</td>
{type === 'lp' ? (
<td className="right">
Expand Down Expand Up @@ -414,7 +419,7 @@ export default function IOUData({
<br />
</>
) : (
<table className="table-mobile">{tokenTbody(list, type)}</table>
<table className="table-mobile wide">{tokenTbody(list, type)}</table>
)}
<br />
</>
Expand Down
11 changes: 6 additions & 5 deletions components/Account/IssuedTokensData.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
fullDateAndTime,
shortNiceNumber,
fullNiceNumber,
CurrencyWithIcon,
niceCurrency,
niceNumber,
CurrencyWithIcon
niceNumber
} from '../../utils/format'
import { nativeCurrency } from '../../utils'

Expand Down Expand Up @@ -74,7 +74,8 @@ export default function IssuedTokensData({ data, selectedCurrency, pageFiatRate
</td>
{mobile ? (
<td className="left">
<CurrencyWithIcon token={token} copy={true} />
<CurrencyWithIcon token={token} />
<br />
<span>Price: {fullNiceNumber(stats.priceNativeCurrency * pageFiatRate, selectedCurrency)}</span>
<br />
<span>
Expand Down Expand Up @@ -102,7 +103,7 @@ export default function IssuedTokensData({ data, selectedCurrency, pageFiatRate
) : (
<>
<td className="left">
<CurrencyWithIcon token={token} copy={true} hideIssuer={true} />
<CurrencyWithIcon token={token} />
</td>
<td className="right">
<span className="tooltip">
Expand Down Expand Up @@ -246,7 +247,7 @@ export default function IssuedTokensData({ data, selectedCurrency, pageFiatRate
) : error ? (
<div className="center orange bold">{error}</div>
) : issuedTokens.length > 0 ? (
<table className="table-mobile">
<table className="table-mobile wide">
<tbody>
<tr>
<th>#</th>
Expand Down
Loading