11import React from 'react'
2- import { Button , Primary } from '../button'
2+ import { Button , Primary , Purchase } from '../button'
33import { walletPreview } from '../../utils/string'
44import styles from './styles.module.scss'
55
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' )
109 return (
1110
12-
1311 < div className = { styles . container } >
1412 { owners . map ( ( { quantity, holder_id, holder, creator_id } , index ) => (
1513
@@ -28,27 +26,12 @@ export const OwnerList = ({ owners, creator_id, acc, swaps }) => {
2826 < Primary > { walletPreview ( holder_id ) } </ Primary >
2927 </ Button >
3028 :
31- undefined
29+ < Button to = { `/tz/${ holder_id } ` } >
30+ < Primary > OBJKTSWAP_V1</ Primary >
31+ </ Button >
3232 }
3333 </ div >
3434 ) ) }
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- }
5235 </ div >
5336 )
5437}
0 commit comments