1
1
import React from 'react'
2
- import { Button , Primary } from '../button'
2
+ import { Button , Primary , Purchase } from '../button'
3
3
import { walletPreview } from '../../utils/string'
4
4
import styles from './styles.module.scss'
5
5
6
- export const OwnerList = ( { owners, creator_id, acc, swaps } ) => {
7
-
8
- owners = owners . filter ( e => e . holder_id !== 'tz1burnburnburnburnburnburnburjAYjjX' && e . holder_id !== 'KT1HbQepzV1nVGg8QVznG7z4RcHseD5kwqBn' && e . holder_id !== 'KT1Hkg5qeNhfwpKW4fXvq7HGZB9z2EnmCCA9' )
9
-
6
+ export const OwnerList = ( { owners, creator_id, acc, swaps, cancelv1 } ) => {
7
+ console . log ( swaps )
8
+ owners = owners . filter ( e => e . holder_id !== 'tz1burnburnburnburnburnburnburjAYjjX' && e . holder_id !== 'KT1HbQepzV1nVGg8QVznG7z4RcHseD5kwqBn' )
10
9
return (
11
10
12
-
13
11
< div className = { styles . container } >
14
12
{ owners . map ( ( { quantity, holder_id, holder, creator_id } , index ) => (
15
13
@@ -28,27 +26,12 @@ export const OwnerList = ({ owners, creator_id, acc, swaps }) => {
28
26
< Primary > { walletPreview ( holder_id ) } </ Primary >
29
27
</ Button >
30
28
:
31
- undefined
29
+ < Button to = { `/tz/${ holder_id } ` } >
30
+ < Primary > OBJKTSWAP_V1</ Primary >
31
+ </ Button >
32
32
}
33
33
</ div >
34
34
) ) }
35
- {
36
- swaps . map ( ( e , index ) => {
37
-
38
- return (
39
- < div >
40
- < div key = { `${ e . id } -${ index } ` } className = { styles . swap } >
41
- < div className = { styles . issuer } >
42
- { e . amount_left } ed.
43
- < Button to = { '/tz/KT1Hkg5qeNhfwpKW4fXvq7HGZB9z2EnmCCA9' } >
44
- < Primary > OBJKTSWAP V1</ Primary >
45
- </ Button >
46
- </ div >
47
- </ div >
48
- </ div >
49
- )
50
- } )
51
- }
52
35
</ div >
53
36
)
54
37
}
0 commit comments