Wizard: Update docs after move to new preview
`/preview` is no longer used in url.
This commit is contained in:
parent
37dfe8584c
commit
933e65d590
7 changed files with 8 additions and 30 deletions
|
|
@ -23,8 +23,6 @@ import {
|
|||
convertStringToDate,
|
||||
timestampToDisplayString,
|
||||
} from '../../../../Utilities/time';
|
||||
import { useGetEnvironment } from '../../../../Utilities/useGetEnvironment';
|
||||
import { betaPath } from '../../utilities/betaPath';
|
||||
|
||||
const getLastIntrospection = (
|
||||
repoIntrospections: RepositoryStatusProps['repoIntrospections']
|
||||
|
|
@ -59,7 +57,6 @@ const RepositoriesStatus = ({
|
|||
repoIntrospections,
|
||||
repoFailCount,
|
||||
}: RepositoryStatusProps) => {
|
||||
const { isBeta } = useGetEnvironment();
|
||||
if (repoStatus === 'Valid') {
|
||||
return (
|
||||
<>
|
||||
|
|
@ -120,7 +117,7 @@ const RepositoriesStatus = ({
|
|||
iconPosition="right"
|
||||
isInline
|
||||
icon={<ExternalLinkAltIcon />}
|
||||
href={betaPath(CONTENT_URL, isBeta())}
|
||||
href={CONTENT_URL}
|
||||
>
|
||||
Go to Repositories
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -4,11 +4,8 @@ import { Alert, Button } from '@patternfly/react-core';
|
|||
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
|
||||
|
||||
import { CONTENT_URL } from '../../../../constants';
|
||||
import { useGetEnvironment } from '../../../../Utilities/useGetEnvironment';
|
||||
import { betaPath } from '../../utilities/betaPath';
|
||||
|
||||
const RepositoryUnavailable = ({ quantity }: { quantity: number }) => {
|
||||
const { isBeta } = useGetEnvironment();
|
||||
return (
|
||||
<Alert
|
||||
variant="warning"
|
||||
|
|
@ -29,7 +26,7 @@ const RepositoryUnavailable = ({ quantity }: { quantity: number }) => {
|
|||
iconPosition="right"
|
||||
isInline
|
||||
icon={<ExternalLinkAltIcon />}
|
||||
href={betaPath(CONTENT_URL, isBeta())}
|
||||
href={CONTENT_URL}
|
||||
>
|
||||
Go to Repositories
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@ import {
|
|||
import { RepositoryIcon } from '@patternfly/react-icons';
|
||||
|
||||
import { CONTENT_URL } from '../../../../../constants';
|
||||
import { useGetEnvironment } from '../../../../../Utilities/useGetEnvironment';
|
||||
import { betaPath } from '../../../utilities/betaPath';
|
||||
|
||||
type EmptyProps = {
|
||||
refetch: () => void;
|
||||
|
|
@ -21,7 +19,6 @@ type EmptyProps = {
|
|||
};
|
||||
|
||||
export default function Empty({ hasFilterValue, refetch }: EmptyProps) {
|
||||
const { isBeta } = useGetEnvironment();
|
||||
return (
|
||||
<EmptyState variant={EmptyStateVariant.lg} data-testid="empty-state">
|
||||
<EmptyStateHeader
|
||||
|
|
@ -44,7 +41,7 @@ export default function Empty({ hasFilterValue, refetch }: EmptyProps) {
|
|||
variant="primary"
|
||||
component="a"
|
||||
target="_blank"
|
||||
href={betaPath(CONTENT_URL, isBeta())}
|
||||
href={CONTENT_URL}
|
||||
className="pf-u-mr-sm"
|
||||
>
|
||||
Go to repositories
|
||||
|
|
|
|||
|
|
@ -11,11 +11,8 @@ import {
|
|||
selectPackages,
|
||||
selectRecommendedRepositories,
|
||||
} from '../../../../store/wizardSlice';
|
||||
import { useGetEnvironment } from '../../../../Utilities/useGetEnvironment';
|
||||
import { betaPath } from '../../utilities/betaPath';
|
||||
|
||||
const ManageRepositoriesButton = () => {
|
||||
const { isBeta } = useGetEnvironment();
|
||||
return (
|
||||
<Button
|
||||
component="a"
|
||||
|
|
@ -24,7 +21,7 @@ const ManageRepositoriesButton = () => {
|
|||
iconPosition="right"
|
||||
isInline
|
||||
icon={<ExternalLinkAltIcon />}
|
||||
href={betaPath(CONTENT_URL, isBeta())}
|
||||
href={CONTENT_URL}
|
||||
>
|
||||
Create and manage repositories here
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue