Skip to content

Commit

Permalink
feat: page setup
Browse files Browse the repository at this point in the history
  • Loading branch information
hegeaal committed Oct 3, 2023
1 parent 2f4f306 commit 22688e7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/app/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ import {
PATHNAME_ABOUT_CONCEPTS,
PATHNAME_ABOUT_INFORMATIONMODELS,
PATHNAME_AI,
PATHNAME_TRANSPORT
PATHNAME_TRANSPORT,
PATHNAME_REQUESTS
} from '../constants/constants';
import ScrollToTop from '../components/scroll-to-top';
import { getConfig } from '../config';
Expand All @@ -58,6 +59,7 @@ import { CmsArticlePage } from '../pages/cms-article-page/cms-article-page';
import OrganizationsRouter from '../pages/organizations';
import InformationPage from '../pages/cms-information-page';
import TransportPage from '../pages/cms-transport-page';
import RequestsPage from '../pages/requests';
import { AiProjectPage } from '../pages/ai-project-page';
import { parseSearchParams } from '../lib/location-history-helper';
import routes from '../routes';
Expand Down Expand Up @@ -113,7 +115,8 @@ export function App({ language, onChangeLanguage }) {
[PATHNAME_ABOUT_CONCEPTS]: InformationPage,
[PATHNAME_ABOUT_INFORMATIONMODELS]: InformationPage,
[PATHNAME_AI]: AiProjectPage,
[PATHNAME_TRANSPORT]: TransportPage
[PATHNAME_TRANSPORT]: TransportPage,
[PATHNAME_REQUESTS]: RequestsPage
};

return (
Expand Down
1 change: 1 addition & 0 deletions src/constants/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const PATHNAME_AI = '/kunstig-intelligens';
export const EXTERNAL_AI_PAGE =
'https://www.digdir.no/kunstig-intelligens/kunstig-intelligens-i-offentlig-sektor/4276';
export const PATHNAME_TRANSPORT = '/transport';
export const PATHNAME_REQUESTS = '/requests';

export const PARAGRAPH__BODY = 'paragraph--body';
export const PARAGRAPH__IMAGE = 'paragraph--image';
Expand Down
4 changes: 4 additions & 0 deletions src/pages/requests/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import React from 'react';

const RequestsPage = () => <main id='content' className='container' />;
export default RequestsPage;
1 change: 1 addition & 0 deletions src/pages/requests/styled.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {};
6 changes: 4 additions & 2 deletions src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import {
PATHNAME_ABOUT_CONCEPTS,
PATHNAME_ABOUT_INFORMATIONMODELS,
PATHNAME_AI,
PATHNAME_TRANSPORT
PATHNAME_TRANSPORT,
PATHNAME_REQUESTS
} from './constants/constants';

const routes: any = {
Expand Down Expand Up @@ -61,7 +62,8 @@ const routes: any = {
PATHNAME_ABOUT_CONCEPTS,
PATHNAME_ABOUT_INFORMATIONMODELS,
PATHNAME_AI,
PATHNAME_TRANSPORT
PATHNAME_TRANSPORT,
PATHNAME_REQUESTS
],
publishing: [
PATHNAME_PUBLISHING,
Expand Down

0 comments on commit 22688e7

Please sign in to comment.