mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
fix for expiry message message (#7093)
this fixes the expiry message label and also makes the whole message a link
This commit is contained in:
parent
4b2a8db537
commit
4cd4a7759b
4 changed files with 20 additions and 14 deletions
1
changes/issue-7074-fix-sandbox-expiration-message
Normal file
1
changes/issue-7074-fix-sandbox-expiration-message
Normal file
|
|
@ -0,0 +1 @@
|
|||
* fix for the sandbox expiration message
|
||||
|
|
@ -8,25 +8,24 @@ interface ISandboxExpiryMessageProps {
|
|||
expiry: string;
|
||||
}
|
||||
|
||||
const SandboxExpiryMessage = ({
|
||||
expiry,
|
||||
}: ISandboxExpiryMessageProps): JSX.Element => {
|
||||
const SandboxExpiryMessage = ({ expiry }: ISandboxExpiryMessageProps) => {
|
||||
return (
|
||||
<div className={baseClass}>
|
||||
<a
|
||||
href="https://fleetdm.com/docs/deploying"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className={baseClass}
|
||||
>
|
||||
<p>Your Fleet Sandbox expires in {expiry}.</p>
|
||||
<a
|
||||
href="https://fleetdm.com/docs/deploying"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
>
|
||||
Learn how to renew or downgrade
|
||||
<span>
|
||||
Learn how to deploy Fleet
|
||||
<img
|
||||
alt="Open external link"
|
||||
className="icon-external"
|
||||
src={ExternalURLIcon}
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</span>
|
||||
</a>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -9,11 +9,18 @@
|
|||
border-radius: $border-radius;
|
||||
font-size: $xx-small;
|
||||
|
||||
color: $core-fleet-black;
|
||||
font-weight: $regular;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: $core-fleet-black;
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ export default {
|
|||
loadSandboxExpiry: async () => {
|
||||
const instanceId = window.location.host.split(".")[0];
|
||||
const url = "https://sandbox.fleetdm.com/expires";
|
||||
const token = local.getItem("auth_token");
|
||||
|
||||
try {
|
||||
const { data } = await axios.get<{ timestamp: string }>(url, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue