Skip to content

Commit

Permalink
fix: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Nov 19, 2022
1 parent ab09ef8 commit 77412bc
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 8,832 deletions.
4 changes: 0 additions & 4 deletions .env.example

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
.DS_STORE
.env
package-lock.json
yarn-error.log
2 changes: 1 addition & 1 deletion components/Card/CardInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default function CardInfo({
<TypographyUI.Balance
icon={
<CryptoIcon
name={process.env.NEXT_PUBLIC_EVM_TOKEN as CryptoIconNames}
name={process.env.NEXT_PUBLIC_NATIVE_TOKEN as CryptoIconNames}
/>
}
value={content.value}
Expand Down
16 changes: 0 additions & 16 deletions docker-compose.yml

This file was deleted.

8 changes: 4 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ const nextConfig = {
env: {
NEXT_PUBLIC_COSMOS_API: 'https://chainindexing.astranaut.dev',
NEXT_PUBLIC_EVM_API: 'https://blockscout.astranaut.dev',
NEXT_PUBLIC_CHAIN_ID: 11115,
NEXT_PUBLIC_TITLE: 'Astra Explorer Testnet',

NEXT_PUBLIC_BLOCK_INTERVAL: '5000',
NEXT_PUBLIC_TRANSACTION_INTERVAL: '5000',
NEXT_PUBLIC_TITLE: 'Astra Explorer',
NEXT_PUBLIC_DATE_FORMAT_VI: 'DD/MM/YYYY',
NEXT_PUBLIC_DATE_FROMAT_OTHER: 'MM/DD/YYYY',
NEXT_PUBLIC_ITEM_SHOW_HOME_PAGE: 7,
NEXT_PUBLIC_EVM_TOKEN: 'asa',
NEXT_PUBLIC_PAGE_OFFSET: 10,
NEXT_PUBLIC_MAXIMUM_FRACTION_DIGITS: 4,
NEXT_PUBLIC_FEE_TOKEN: 'ASA',
NEXT_PUBLIC_CHAIN_ID: 11115
NEXT_PUBLIC_NATIVE_TOKEN: 'asa'
},
images: {
remotePatterns: [
Expand Down
2 changes: 1 addition & 1 deletion pages/tx/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const BlockDetailPage: React.FC<NextPage> = _ => {
from={item.from}
to={item.to}
value={item.value}
valueToken={process.env.NEXT_PUBLIC_EVM_TOKEN as CryptoIconNames}
valueToken={process.env.NEXT_PUBLIC_NATIVE_TOKEN as CryptoIconNames}
labelStatus={item.evmType}
type={item.type}
newBlock={item.newTransaction}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const AddressTransaction = ({ transaction }: Props) => {
size="2xs"
value={convertBalanceToView(transaction.fee)}
fixNumber={7}
currency={process.env.NEXT_PUBLIC_FEE_TOKEN}
currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN}
classes="contrast-color-70"
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const ContractTransaction = ({ transaction }: Props) => {
size="2xs"
value={convertBalanceToView(transaction.gasUsed)}
fixNumber={7}
currency={process.env.NEXT_PUBLIC_FEE_TOKEN}
currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN}
classes="contrast-color-70"
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion views/block/tabs/BlockTransactionTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const BlockTransactionTab = ({ blockHeight }: Props) => {
from={''}
to={''}
value={undefined}
valueToken={process.env.NEXT_PUBLIC_EVM_TOKEN as CryptoIconNames}
valueToken={process.env.NEXT_PUBLIC_NATIVE_TOKEN as CryptoIconNames}
type={getTransactionType(transaction?.messages[0]?.type as TransacionTypeEnum)}
newBlock={false}
style="normal"
Expand Down
2 changes: 1 addition & 1 deletion views/transactions/TransactionBriefRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function TransactionBriefRow({
<TypographyUI.Balance
icon={
<CryptoIcon
name={process.env.NEXT_PUBLIC_EVM_TOKEN as CryptoIconNames}
name={process.env.NEXT_PUBLIC_NATIVE_TOKEN as CryptoIconNames}
/>
}
currency={balance.token}
Expand Down
4 changes: 2 additions & 2 deletions views/transactions/TransactionRowContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default function TransactionRowContent({
currency={
valueCurrency
? valueCurrency.toLowerCase() == 'aastra'
? process.env.NEXT_PUBLIC_FEE_TOKEN
? process.env.NEXT_PUBLIC_NATIVE_TOKEN
: valueCurrency?.toUpperCase()
: 'ASA'
}
Expand All @@ -157,7 +157,7 @@ export default function TransactionRowContent({
size="2xs"
value={convertBalanceToView(fee)}
fixNumber={7}
currency={process.env.NEXT_PUBLIC_FEE_TOKEN}
currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN}
classes="contrast-color-70"
/>
)}
Expand Down
Loading

0 comments on commit 77412bc

Please sign in to comment.