constants: Move URLs to constants

Fixes #1923

This moves all URLs from code to constants.
This commit is contained in:
regexowl 2024-04-26 12:30:42 +02:00 committed by Lucas Garfield
parent bb91840eef
commit e9d28498e1
26 changed files with 146 additions and 68 deletions

View file

@ -7,6 +7,7 @@ import { useFlag } from '@unleash/proxy-client-react';
import { useDispatch } from 'react-redux';
import { useNavigate, useLocation } from 'react-router-dom';
import { CREATING_IMAGES_WITH_IB_URL } from '../../constants';
import {
getNotificationProp,
manageEdgeImagesUrlName,
@ -33,9 +34,7 @@ const ImagesTable = () => {
navigateProp={useNavigate}
locationProp={useLocation}
showHeaderProp={false}
docLinkProp={
'https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/creating_customized_images_by_using_insights_image_builder/index'
}
docLinkProp={CREATING_IMAGES_WITH_IB_URL}
notificationProp={notificationProp}
pathPrefix={resolveRelPath('')}
urlName={manageEdgeImagesUrlName}