-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(RHINENG-8562): Show conversion alert for CentOS systems (#2159)
Implements https://issues.redhat.com/browse/RHINENG-8562.
- Loading branch information
Showing
3 changed files
with
135 additions
and
3 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
src/components/GeneralInfo/GeneralInformation/ConversionAlert.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { Alert, Text, TextContent, TextVariants } from '@patternfly/react-core'; | ||
import useInsightsNavigate from '@redhat-cloud-services/frontend-components-utilities/useInsightsNavigate'; | ||
import React from 'react'; | ||
|
||
const ConversionAlert = (props) => { | ||
const navigate = useInsightsNavigate('tasks'); | ||
|
||
return ( | ||
<Alert | ||
variant="custom" | ||
isInline | ||
title="Convert this CentOS system to RHEL" | ||
{...props} | ||
> | ||
<TextContent> | ||
<Text component={TextVariants.p}> | ||
On June 30, 2024, CentOS Linux 7 will reach End of Life (EOL). Convert | ||
your system to RHEL using the Convert2RHEL tool to migrate your system | ||
to a fully supported production-grade operating system while | ||
maintaining existing OS customizations, configurations, and | ||
preferences. | ||
</Text> | ||
<Text component={TextVariants.p}> | ||
Red Hat can help migrate CentOS Linux 7 users to maintain continuity | ||
in their environment after the EOL date, whether they’re on premise or | ||
in the cloud.{' '} | ||
<a | ||
href="https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux/centos-migration" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
Learn more about CentOS Migration here. | ||
</a> | ||
</Text> | ||
<Text component={TextVariants.p}> | ||
<a onClick={() => navigate('/available#pre-conversion-analysis')}> | ||
Run a Pre-conversion analysis of this system | ||
</a> | ||
</Text> | ||
</TextContent> | ||
</Alert> | ||
); | ||
}; | ||
|
||
export { ConversionAlert }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters