Changed link button component for MinIO Image (#1208)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net> Co-authored-by: Benjamin Perez <benjamin@bexsoft.net> Co-authored-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
@@ -31,6 +31,7 @@ const styles = (theme: Theme) =>
|
|||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
fontSize: "inherit",
|
fontSize: "inherit",
|
||||||
color: theme.palette.info.main,
|
color: theme.palette.info.main,
|
||||||
|
fontFamily: "Lato, sans-serif",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ import { AppState } from "../../../../store";
|
|||||||
import history from "./../../../../history";
|
import history from "./../../../../history";
|
||||||
import { CircleIcon } from "../../../../icons";
|
import { CircleIcon } from "../../../../icons";
|
||||||
import { tenantIsOnline } from "../ListTenants/utils";
|
import { tenantIsOnline } from "../ListTenants/utils";
|
||||||
|
import AButton from "../../Common/AButton";
|
||||||
|
|
||||||
interface ITenantsSummary {
|
interface ITenantsSummary {
|
||||||
classes: any;
|
classes: any;
|
||||||
@@ -108,7 +109,9 @@ const styles = (theme: Theme) =>
|
|||||||
marginBottom: 2,
|
marginBottom: 2,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
linkedSection: {
|
||||||
|
color: theme.palette.info.main,
|
||||||
|
},
|
||||||
...containerForHeader(theme.spacing(4)),
|
...containerForHeader(theme.spacing(4)),
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -200,6 +203,7 @@ const TenantSummary = ({
|
|||||||
href={tenant?.endpoints?.minio}
|
href={tenant?.endpoints?.minio}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
className={classes.linkedSection}
|
||||||
>
|
>
|
||||||
{tenant?.endpoints?.minio}
|
{tenant?.endpoints?.minio}
|
||||||
</a>
|
</a>
|
||||||
@@ -231,6 +235,7 @@ const TenantSummary = ({
|
|||||||
href={tenant?.endpoints?.console}
|
href={tenant?.endpoints?.console}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
|
className={classes.linkedSection}
|
||||||
>
|
>
|
||||||
{tenant?.endpoints?.console}
|
{tenant?.endpoints?.console}
|
||||||
</a>
|
</a>
|
||||||
@@ -242,15 +247,13 @@ const TenantSummary = ({
|
|||||||
<div>
|
<div>
|
||||||
<b>MinIO:</b>
|
<b>MinIO:</b>
|
||||||
<i>
|
<i>
|
||||||
<Button
|
<AButton
|
||||||
color="primary"
|
|
||||||
className={classes.anchorButton}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setUpdateMinioVersion(true);
|
setUpdateMinioVersion(true);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{tenant ? tenant.image : ""}
|
{tenant ? tenant.image : ""}
|
||||||
</Button>
|
</AButton>
|
||||||
</i>
|
</i>
|
||||||
<div />
|
<div />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user