Skip to content

Commit

Permalink
chore: update link to go to catalog-portal
Browse files Browse the repository at this point in the history
  • Loading branch information
hegeaal committed Sep 16, 2024
1 parent c6e208c commit ad5054b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions config.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ window.env = {
FDK_COMMUNITY_BASE_URI: '$FDK_COMMUNITY_BASE_URI',
FDK_CMS_BASE_URI: '$FDK_CMS_BASE_URI',
CATALOG_ADMIN_BASE_URI: '$CATALOG_ADMIN_BASE_URI',
CATALOG_PORTAL_BASE_URI: '$CATALOG_PORTAL_BASE_URI',
USE_DEMO_LOGO: '$USE_DEMO_LOGO'
};
4 changes: 2 additions & 2 deletions src/components/breadcrumbs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import env from '../../utils/constants/env';
import { localization } from '../../utils/language/localization';
import SC from './styled';

const { FDK_REGISTRATION_BASE_URI } = env;
const { CATALOG_PORTAL_BASE_URI } = env;

const Breadcrumbs: FC = () => {
const [datasetId, setDatasetId] = useState('');
Expand All @@ -26,7 +26,7 @@ const Breadcrumbs: FC = () => {
return (
<SC.BreadcrumbsNav>
<span>
<SC.ExternalLink aria-label={localization.allCatalogs} href={FDK_REGISTRATION_BASE_URI}>
<SC.ExternalLink aria-label={localization.allCatalogs} href={CATALOG_PORTAL_BASE_URI}>
{localization.allCatalogs}
</SC.ExternalLink>
<span>
Expand Down
4 changes: 2 additions & 2 deletions src/components/page-header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { localization } from '../../utils/language/localization';
import { useGlobalContext } from '../../context/global-context';
import { useLocation } from 'react-router-dom';

const { FDK_BASE_URI, ADMIN_GUI_BASE_URI, FDK_COMMUNITY_BASE_URI, FDK_REGISTRATION_BASE_URI, CATALOG_ADMIN_BASE_URI } =
const { FDK_BASE_URI, ADMIN_GUI_BASE_URI, FDK_COMMUNITY_BASE_URI, CATALOG_PORTAL_BASE_URI, CATALOG_ADMIN_BASE_URI } =
env;

const Header = () => {
Expand Down Expand Up @@ -37,7 +37,7 @@ const Header = () => {
username={authService && authService.getUser().name}
onLogout={() => authService.logout()}
useDemoLogo={env.USE_DEMO_LOGO}
homeUrl={FDK_REGISTRATION_BASE_URI}
homeUrl={CATALOG_PORTAL_BASE_URI}
skeHomeText='Datakataloger'
showManageConceptCatalogsUrl={showManageConceptCatalogsUrl()}
manageConceptCatalogsUrl={CATALOG_ADMIN_BASE_URI}
Expand Down
1 change: 1 addition & 0 deletions src/utils/constants/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default validateEnv(
FDK_COMMUNITY_BASE_URI: 'https://community.staging.fellesdatakatalog.digdir.no/',
FDK_CMS_BASE_URI: 'https://cms.fellesdatakatalog.digdir.no',
CATALOG_ADMIN_BASE_URI: 'https://catalog-admin.staging.fellesdatakatalog.digdir.no',
CATALOG_PORTAL_BASE_URI: 'https://catalog-portal.staging.fellesdatakatalog.digdir.no',
USE_DEMO_LOGO: false,
}
);
1 change: 1 addition & 0 deletions src/utils/types/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ export interface EnvironmentVariables {
FDK_CMS_BASE_URI: string;
CATALOG_ADMIN_BASE_URI: string;
USE_DEMO_LOGO: boolean;
CATALOG_PORTAL_BASE_URI: boolean;
}

0 comments on commit ad5054b

Please sign in to comment.