Skip to content

Commit df1856b

Browse files
committed
refactor: rename AddressTransactions
1 parent 1d6e812 commit df1856b

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

components/Transaction/AddressTransactions.tsx renamed to components/Transaction/PaybuttonTransactions.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import BCHIcon from 'assets/bch-logo.png'
55
import EyeIcon from 'assets/eye-icon.png'
66
import CheckIcon from 'assets/check-icon.png'
77
import XIcon from 'assets/x-icon.png'
8-
import TableContainerGetter from '../../components/TableContainer/TableContainerGetter'
8+
import TableContainerGetter from '../TableContainer/TableContainerGetter'
99
import { compareNumericString } from 'utils/index'
1010
import moment from 'moment-timezone'
1111
import { XEC_TX_EXPLORER_URL, BCH_TX_EXPLORER_URL } from 'constants/index'
@@ -27,8 +27,8 @@ function fetchTransactionsByPaybuttonId (paybuttonId: string): Function {
2727
}
2828
})
2929
const responseCount = await fetch(`/api/paybutton/transactions/count/${paybuttonId}`)
30-
const transactions = await response.json();
31-
const count = await responseCount.json();
30+
const transactions = await response.json()
31+
const count = await responseCount.json()
3232
return {
3333
data: transactions.transactions,
3434
totalCount: count
@@ -94,12 +94,12 @@ export default ({ paybuttonId, addressSyncing, tableRefreshCount, timezone = mom
9494
<Image src={EyeIcon} alt='View on explorer' />
9595
</div>
9696
</a>
97-
</div>
97+
</div>
9898
)
9999
}
100100
},
101101
{
102-
Header: () => (<div style={{marginRight: '1px'}}>Address</div>),
102+
Header: () => (<div style={{ marginRight: '1px' }}>Address</div>),
103103
accessor: 'address.address',
104104
shrinkable: true,
105105
Cell: (cellProps) => {
@@ -109,7 +109,7 @@ export default ({ paybuttonId, addressSyncing, tableRefreshCount, timezone = mom
109109
</div>
110110
)
111111
}
112-
},
112+
}
113113
],
114114
[]
115115
)

components/Transaction/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import AddressTransactions from './AddressTransactions'
1+
import PaybuttonTransactions from './PaybuttonTransactions'
22

33
export {
4-
AddressTransactions
4+
PaybuttonTransactions
55
}

pages/button/[id].tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react'
22
import Page from 'components/Page'
33
import { PaybuttonDetail } from 'components/Paybutton'
44
import { PaybuttonWithAddresses } from 'services/paybuttonService'
5-
import { AddressTransactions } from 'components/Transaction'
5+
import { PaybuttonTransactions } from 'components/Transaction'
66
import supertokensNode from 'supertokens-node'
77
import * as SuperTokensConfig from '../../config/backendConfig'
88
import Session from 'supertokens-node/recipe/session'
@@ -207,7 +207,7 @@ export default function PayButton (props: PaybuttonProps): React.ReactElement {
207207
</div>
208208
</div>
209209

210-
<AddressTransactions addressSyncing={isSyncing} paybuttonId={paybutton.id} tableRefreshCount={tableRefreshCount} timezone={timezone}/>
210+
<PaybuttonTransactions addressSyncing={isSyncing} paybuttonId={paybutton.id} tableRefreshCount={tableRefreshCount} timezone={timezone}/>
211211
<PaybuttonTrigger emailCredits={userProfile.emailCredits} paybuttonId={paybutton.id}/>
212212
</>
213213
)

0 commit comments

Comments
 (0)