Skip to content

Commit

Permalink
hotfix-added 512x icon & fixed vercel link
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerosz committed Dec 30, 2020
1 parent 3c54a01 commit bc0323f
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 2 deletions.
Binary file added public/images/icons/icon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/icons/icon-384x384.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/icons/icon-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,24 @@
sizes="192x192"
href="%PUBLIC_URL%/images/icons/android-icon-192x192.png"
/>
<link
rel="icon"
type="image/png"
sizes="256x256"
href="%PUBLIC_URL%/images/icons/icon-256x256.png"
/>
<link
rel="icon"
type="image/png"
sizes="384x384"
href="%PUBLIC_URL%/images/icons/icon-384x384.png"
/>
<link
rel="icon"
type="image/png"
sizes="512x512"
href="%PUBLIC_URL%/images/icons/icon-512x512.png"
/>
<link
rel="icon"
type="image/png"
Expand Down
15 changes: 15 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@
"sizes": "192x192",
"type": "image/png",
"density": "4.0"
},
{
"src": "/images/icons/icon-256x256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src": "/images/icons/icon-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "/images/icons/icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
]
}
2 changes: 1 addition & 1 deletion src/components/Card/commentCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const CommentCard: React.FC<CommentDataProps & StyleProps> = ({
const formatSinceEdited = fd.getTimeFromNow(data.edited);
const formatedUpvotes = fd.shortenLargeNumber(data.ups);
const upvotes = data.ups > 1 ? 'upvotes' : 'upvote';
const url = process.env.PUBLIC_URL || 'http://localhost:3000';
const url = process.env.REACT_APP_VERCEL_URL || 'http://localhost:3000';
const shareUrl = `${url}/#/post/${data.subreddit}/comments/${postId}`;

let authorDisplay;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/postCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const PostCard: React.FC<StyleProps & PostDataProps> = ({
preview = null;
}

const url = process.env.PUBLIC_URL || 'http://localhost:3000';
const url = process.env.REACT_APP_VERCEL_URL || 'http://localhost:3000';
const shareUrl = `${url}/#/post/${data.subreddit}/comments/${data.id}`;

return (
Expand Down

1 comment on commit bc0323f

@vercel
Copy link

@vercel vercel bot commented on bc0323f Dec 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.