Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set up inital page #1782

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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