Skip to content

Commit a38625b

Browse files
committed
prettier
1 parent d45ee46 commit a38625b

File tree

7 files changed

+81
-41
lines changed

7 files changed

+81
-41
lines changed

src/components/artist-socials/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ import { Button } from '../button'
22
import { VisuallyHidden } from '../visually-hidden'
33
import styles from './styles.module.scss'
44

5-
export const ArtistSocials = ({ site, telegram, twitter, instagram, github, reddit }) => {
5+
export const ArtistSocials = ({
6+
site,
7+
telegram,
8+
twitter,
9+
instagram,
10+
github,
11+
reddit,
12+
}) => {
613
return (
714
<div className={styles.container}>
815
{site && (

src/components/header/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export const Header = () => {
136136
<Primary>manage assets</Primary>
137137
</Button>
138138
</li>
139-
{/* <li>
139+
{/* <li>
140140
<Button onClick={() => handleRoute('/config')}>
141141
<Primary>config</Primary>
142142
</Button>

src/components/tags/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ export const Tags = ({ tags }) => {
1010
.filter((e) => e !== '')
1111
.map((tag, index) => {
1212
return (
13-
<Button key={`tag${tag}${index}`} to={`${PATH.TAGS}/${encodeURI(tag)}`}>
13+
<Button
14+
key={`tag${tag}${index}`}
15+
to={`${PATH.TAGS}/${encodeURI(tag)}`}
16+
>
1417
<div className={styles.tag}>{tag}</div>
1518
</Button>
1619
)

src/context/HicetnuncContext.js

Lines changed: 38 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ class HicetnuncContextProviderClass extends Component {
2626
super(props)
2727

2828
this.state = {
29-
3029
// smart contracts
3130

32-
hDAO : "KT1AFA2mwNUMNd4SsujE1YYp29vd8BZejyKW",
33-
subjkt : "KT1P69B8exDGuqNysBweuZJSqAmaD4dU3gtU",
34-
objkt : 'KT1Hkg5qeNhfwpKW4fXvq7HGZB9z2EnmCCA9',
31+
hDAO: 'KT1AFA2mwNUMNd4SsujE1YYp29vd8BZejyKW',
32+
subjkt: 'KT1P69B8exDGuqNysBweuZJSqAmaD4dU3gtU',
33+
objkt: 'KT1Hkg5qeNhfwpKW4fXvq7HGZB9z2EnmCCA9',
3534

3635
// fullscreen. DO NOT CHANGE!
3736
fullscreen: false,
@@ -290,30 +289,43 @@ class HicetnuncContextProviderClass extends Component {
290289
console.log(r)
291290
},
292291

293-
registry : async (alias, metadata) => {
294-
return await Tezos.wallet.at(this.state.subjkt).then(c => c.methods.registry(alias.split('')
295-
.reduce(
296-
(hex, c) =>
297-
(hex += c.charCodeAt(0).toString(16).padStart(2, '0')),
298-
''
299-
), ("ipfs://" + metadata.path).split('')
300-
.reduce(
301-
(hex, c) =>
302-
(hex += c.charCodeAt(0).toString(16).padStart(2, '0')),
303-
''
304-
)).send({ amount : 0 }))
292+
registry: async (alias, metadata) => {
293+
return await Tezos.wallet.at(this.state.subjkt).then((c) =>
294+
c.methods
295+
.registry(
296+
alias
297+
.split('')
298+
.reduce(
299+
(hex, c) =>
300+
(hex += c.charCodeAt(0).toString(16).padStart(2, '0')),
301+
''
302+
),
303+
('ipfs://' + metadata.path)
304+
.split('')
305+
.reduce(
306+
(hex, c) =>
307+
(hex += c.charCodeAt(0).toString(16).padStart(2, '0')),
308+
''
309+
)
310+
)
311+
.send({ amount: 0 })
312+
)
305313
},
306314

307-
hDAO_update_operators : async (address) => {
308-
return await Tezos.wallet.at(this.state.hDAO).then(c => c.methods.update_operators([
309-
{
310-
add_operator: {
311-
owner: address,
312-
operator: this.state.subjkt,
313-
token_id: 0,
314-
},
315-
},
316-
]).send({ amount : 0 }))
315+
hDAO_update_operators: async (address) => {
316+
return await Tezos.wallet.at(this.state.hDAO).then((c) =>
317+
c.methods
318+
.update_operators([
319+
{
320+
add_operator: {
321+
owner: address,
322+
operator: this.state.subjkt,
323+
token_id: 0,
324+
},
325+
},
326+
])
327+
.send({ amount: 0 })
328+
)
317329
},
318330

319331
load: false,

src/pages/config/index.js

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class Config extends Component {
1616
subjkt: '',
1717
description: '',
1818
social_media: '',
19-
subjktUri: '' // uploads image
19+
subjktUri: '', // uploads image
2020
}
2121

2222
componentWillMount = () => {
@@ -31,10 +31,14 @@ export class Config extends Component {
3131
// config personax
3232

3333
subjkt_config = async () => {
34-
3534
const ipfs = create(infuraUrl)
3635

37-
this.context.registry(this.state.subjkt, await ipfs.add(Buffer.from(JSON.stringify({ description: this.state.description }))))
36+
this.context.registry(
37+
this.state.subjkt,
38+
await ipfs.add(
39+
Buffer.from(JSON.stringify({ description: this.state.description }))
40+
)
41+
)
3842
/*
3943
4044
signature study
@@ -76,11 +80,25 @@ export class Config extends Component {
7680
<Container>
7781
<Padding>
7882
<div>
79-
<button onClick={this.hDAO_operators}>allow subjkt operators ○</button>
83+
<button onClick={this.hDAO_operators}>
84+
allow subjkt operators ○
85+
</button>
8086
</div>
8187
<div>
82-
<input type="text" name="subjkt" onChange={this.handleChange} placeholder='subjkt'></input><br />
83-
<input type="text" name="description" onChange={this.handleChange} placeholder='description'></input><br />
88+
<input
89+
type="text"
90+
name="subjkt"
91+
onChange={this.handleChange}
92+
placeholder="subjkt"
93+
></input>
94+
<br />
95+
<input
96+
type="text"
97+
name="description"
98+
onChange={this.handleChange}
99+
placeholder="description"
100+
></input>
101+
<br />
84102
<button onClick={this.subjkt_config}>config</button>
85103
</div>
86104
<div>

src/pages/display/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export default class Display extends Component {
313313
</Primary>
314314
</Button>
315315

316-
{/* <Button onClick={this.market}>
316+
{/* <Button onClick={this.market}>
317317
<Primary selected={this.state.marketState}>market</Primary>
318318
</Button> */}
319319
</div>

src/pages/faq/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ export class FAQ extends Component {
4949
<strong>how do I add/change the price of my OBJKT?</strong>
5050
</Primary>
5151
</Button>
52-
</div>
52+
</div>
5353
<div className={styles.buttons}>
5454
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/How-to-burn-%F0%9F%94%A5">
5555
<Primary>
5656
<strong>how do I burn my OBJKT?</strong>
5757
</Primary>
5858
</Button>
59-
</div>
59+
</div>
6060
<div className={styles.buttons}>
6161
<Button href="https://github.com/hicetnunc2000/hicetnunc/wiki/How-to-resell-%F0%9F%8F%AA">
6262
<Primary>
@@ -70,7 +70,7 @@ export class FAQ extends Component {
7070
<strong>what is hDAO ○?</strong>
7171
</Primary>
7272
</Button>
73-
</div>
73+
</div>
7474
</Padding>
7575
</Container>
7676
<Container>
@@ -95,7 +95,7 @@ export class FAQ extends Component {
9595
<strong>useful tools</strong>
9696
</Primary>
9797
</Button>
98-
</div>
98+
</div>
9999
</Padding>
100100
</Container>
101101
<Container>
@@ -106,7 +106,7 @@ export class FAQ extends Component {
106106
<strong>português</strong>
107107
</Primary>
108108
</Button>
109-
</div>
109+
</div>
110110
</Padding>
111111
</Container>
112112
</Page>

0 commit comments

Comments
 (0)