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

Fix: fixed invalid docker pull link #20

Merged
merged 1 commit into from
Nov 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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