Skip to content

Commit

Permalink
Merge pull request #113 from HathorNetwork/dev
Browse files Browse the repository at this point in the history
Release v0.7.10
  • Loading branch information
pedroferreira1 authored Sep 2, 2021
2 parents 73806cc + 4ecfe71 commit df0da66
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @r4mmer
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hathor-admin",
"version": "0.7.9",
"version": "0.7.10",
"private": true,
"dependencies": {
"@hathor/wallet-lib": "^0.11.1",
Expand Down
8 changes: 6 additions & 2 deletions src/components/token/TokenNFTPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const TokenNFTPreview = (props) => {

if (nftType === NFT_MEDIA_TYPES.image) {
media = <img src={token.meta.nft.file} width="100%" height="100%" alt="NFT Preview" />;
} else if(nftType === NFT_MEDIA_TYPES.video && fileType) {
} else if (nftType === NFT_MEDIA_TYPES.video && fileType) {
media = (
<video
controls
Expand All @@ -63,7 +63,7 @@ const TokenNFTPreview = (props) => {
Your browser does not support html video tag.
</video>
)
} else if(nftType === NFT_MEDIA_TYPES.audio && fileType) {
} else if (nftType === NFT_MEDIA_TYPES.audio && fileType) {
media = (
<audio
controls
Expand All @@ -76,6 +76,10 @@ const TokenNFTPreview = (props) => {
Your browser does not support the audio element.
</audio>
)
} else if (nftType === NFT_MEDIA_TYPES.pdf) {
// Toolbar to prevent showing download/print icons
const data = `${token.meta.nft.file}#toolbar=0`;
media = <object data={data} width="100%" height="100%" type="application/pdf" alt="NFT Preview" />;
} else {
media = <p> Preview Unavailable </p>
}
Expand Down
5 changes: 3 additions & 2 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const TESTNET_GENESIS_TX = [

export const DECIMAL_PLACES = 2;

export const VERSION = '0.7.9';
export const VERSION = '0.7.10';

export const MIN_API_VERSION = '0.33.0';

Expand All @@ -71,7 +71,8 @@ export const GTM_ID = process.env.REACT_APP_GTM_ID;
export const NFT_MEDIA_TYPES = {
image: 'IMAGE',
video: 'VIDEO',
audio: 'AUDIO'
audio: 'AUDIO',
pdf: 'PDF',
}

export const VIDEO_MEDIA_TYPES_BY_EXTENSION = {
Expand Down

0 comments on commit df0da66

Please sign in to comment.