-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc3352d
commit 75a1998
Showing
39 changed files
with
3,272 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react' | ||
import tt from 'counterpart' | ||
|
||
import Icon from 'app/components/elements/Icon' | ||
import PagedDropdownMenu from 'app/components/elements/PagedDropdownMenu' | ||
|
||
class NFTMarketCollections extends React.Component { | ||
render() { | ||
let { nft_market_collections, selected } = this.props | ||
const nft_colls = nft_market_collections ? nft_market_collections.toJS() : [] | ||
|
||
const colls = [] | ||
colls.push({ | ||
key: '_all', | ||
link: '/nft', | ||
value: tt('nft_market_page_jsx.all_collections') | ||
}) | ||
for (const nft_coll of nft_colls) { | ||
colls.push({ | ||
key: nft_coll.name, | ||
link: '/nft/' + nft_coll.name, | ||
value: nft_coll.name | ||
}) | ||
} | ||
|
||
selected = selected || tt('nft_market_page_jsx.all_collections') | ||
|
||
return <PagedDropdownMenu className='Witnesses__vote-list' el='div' items={colls} | ||
renderItem={item => item} | ||
selected={selected} | ||
perPage={20}> | ||
{selected} | ||
<Icon name="dropdown-arrow" /> | ||
</PagedDropdownMenu> | ||
} | ||
} | ||
|
||
export default NFTMarketCollections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { Component, } from 'react' | ||
|
||
class NFTSmallIcon extends Component { | ||
render() { | ||
const { image, ...rest } = this.props | ||
|
||
return <a className='NFTSmallIcon' | ||
style={{ backgroundImage: `url(${image})` }} href={image} target='_blank' rel='nofollow noreferrer' {...rest}></a> | ||
} | ||
} | ||
|
||
export default NFTSmallIcon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.NFTSmallIcon { | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-position: 50% 50%; | ||
border-radius: 50%; | ||
|
||
width: 3rem; | ||
height: 3rem; | ||
display: inline-block; | ||
vertical-align: top; | ||
} |
Oops, something went wrong.