Skip to content

Commit

Permalink
feat: add breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
hegeaal committed Oct 23, 2023
1 parent 020f41c commit 8bf6130
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
7 changes: 6 additions & 1 deletion src/app/breadcrumbs/breadcrumbs.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import {
PATHNAME_ABOUT_DATA_SERVICES,
PATHNAME_ABOUT_CONCEPTS,
PATHNAME_ABOUT_INFORMATIONMODELS,
PATHNAME_AI
PATHNAME_AI,
PATHNAME_REQUESTS
} from '../../constants/constants';
import DatasetBreadcrumb from './dataset-breadcrumb';
import DataServiceBreadcrumb from './data-service-breadcrumb';
Expand Down Expand Up @@ -135,6 +136,10 @@ const routes = [
{
path: PATHNAME_AI,
breadcrumb: () => <PathNameBreadcrumb pathName='ai' />
},
{
path: PATHNAME_REQUESTS,
breadcrumb: () => <PathNameBreadcrumb pathName='requests' />
}
];

Expand Down
3 changes: 2 additions & 1 deletion src/l10n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@
"aboutDataServices": "About data service catalog",
"aboutConcepts": "About concept catalog",
"aboutInformationModels": "About information model catalog",
"ai": "Artificial intelligence"
"ai": "Artificial intelligence",
"requests": "Requests"
},
"query": {
"intro": "Example: public transport",
Expand Down
3 changes: 2 additions & 1 deletion src/l10n/nb.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@
"aboutDataServices": "Om API-katalogen",
"aboutConcepts": "Om begrepskatalogen",
"aboutInformationModels": "Om informasjonsmodell-katalogen",
"ai": "Kunstig intelligens"
"ai": "Kunstig intelligens",
"requests": "Etterspørsler"
},
"query": {
"intro": "Eksempel: kollektivtransport",
Expand Down
3 changes: 2 additions & 1 deletion src/l10n/nn.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@
"aboutDataServices": "Om API-katalogen",
"aboutConcepts": "Om omgrepskatalogen",
"aboutInformationModels": "Om informasjonsmodellkatalogen",
"ai": "Kunstig intelligens"
"ai": "Kunstig intelligens",
"requests": "Etterspurnadar"
},
"query": {
"intro": "Eksempel: offentleg transport",
Expand Down
6 changes: 3 additions & 3 deletions src/pages/requests/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Link from '@fellesdatakatalog/link';
import Button from '@fellesdatakatalog/button';
import Select from 'react-select';
import ReactPaginate from 'react-paginate';
import { Breadcrumb } from 'reactstrap';
import withCommunity, {
Props as CommunityProps
} from '../../components/with-community';
Expand Down Expand Up @@ -55,9 +56,8 @@ const RequestsPage: FC<Props> = ({

return (
<>
<SC.Banner>
<Banner title={localization.requestsPage.title} />
</SC.Banner>
<Breadcrumb />
<Banner title={localization.requestsPage.title} />
<main id='content' className='container'>
<SC.FirstRow>
<SC.InfoText>
Expand Down

0 comments on commit 8bf6130

Please sign in to comment.