Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #20 from containerish/fix-docker-pull-command
Browse files Browse the repository at this point in the history
Fix: fixed invalid docker pull link
  • Loading branch information
jay-dee7 authored Nov 21, 2021
2 parents a58fec8 + 9558049 commit 65a8ae9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "parachute-ui",
"version": "0.1.0",
"private": true,
"private": false,
"homepage": ".",
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@material-ui/core": "^4.11.4",
Expand Down
4 changes: 3 additions & 1 deletion src/components/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Link } from "react-router-dom";
import Text from "antd/es/typography/Text";

export const Tile = ({ repoName, author, updatedAt }) => {
const dockerEndpoint = new URL(process.env.REACT_APP_API_BASE_URL)

return (
<div
style={{ background: '#ccd7e3', width: "90%", borderRadius: 8, boxShadow: "0.7px 1.4px 1.4px hsl(0deg 0% 0% / 0.48)", margin: "0.5% 0" }}>
Expand All @@ -16,7 +18,7 @@ export const Tile = ({ repoName, author, updatedAt }) => {
extra={(
<div>
<Text style={{ marginRight: "12px" }} copyable={{
text: `docker pull openregistry.dev/${author}/${repoName}`,
text: `docker pull ${dockerEndpoint.hostname}/${author}/${repoName}`,
tooltips: [<Tooltip>copy pull command</Tooltip>]
}}
/>
Expand Down

0 comments on commit 65a8ae9

Please sign in to comment.