Skip to content

Commit 2e9c324

Browse files
author
crzypatchwork
committed
latest ui fixes
1 parent 41584a9 commit 2e9c324

File tree

2 files changed

+8
-25
lines changed

2 files changed

+8
-25
lines changed

src/components/owner-list/index.js

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import React from 'react'
2-
import { Button, Primary } from '../button'
2+
import { Button, Primary, Purchase } from '../button'
33
import { walletPreview } from '../../utils/string'
44
import 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.&nbsp;
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
}

src/pages/objkt-display/tabs/swap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const Swap = ({ total_amount, owners, creator, royalties, token_info, add
4747
console.log(acc.address, royalties, parseFloat(price) * 1000000, id, creator.address, parseFloat(amount))
4848

4949
if (currency === 'tez') {
50-
swapv2(acc.address, royalties, parseFloat(price) * 1000000, id, creator.address, parseFloat(amount))
50+
swapv2(acc.address, royalties, parseFloat(price) * 1000000, id, creator.address, parseFloat(amount))
5151
//swap(parseFloat(amount), id, parseFloat(price) * 1000000)
5252
.then((e) => {
5353
// when taquito returns a success/fail message

0 commit comments

Comments
 (0)