Skip to content

Commit

Permalink
fix(conformity): fix broken conformity body page (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
manojava-gk authored Dec 6, 2023
1 parent 61e0a0b commit b29853b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
- Enable triple-slash-reference rule
- App overview
- api failing component appears with "no data available" and with error bar

- Company Roles
- Fix typo error to fix conformity body issue

## 1.7.0-RC4

Expand Down
2 changes: 1 addition & 1 deletion src/assets/locales/de/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"companyrolesparticipant": "Participant",
"companyrolesappprovider": "App Provider",
"companyrolesserviceprovider": "Service Provider",
"companyrolesconfirmitybody": "Confirmity Body",
"companyrolesconformitybody": "Conformity Body",
"companyrolesonboardingserviceprovider": "Onboarding Service Provider",
"usecase": "Use Case",
"usecasetraceablity": "Traceablity",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"companyrolesparticipant": "Participant",
"companyrolesappprovider": "App Provider",
"companyrolesserviceprovider": "Service Provider",
"companyrolesconfirmitybody": "Confirmity Body",
"companyrolesconformitybody": "Conformity Body",
"companyrolesonboardingserviceprovider": "Onboarding Service Provider",
"usecase": "Use Case",
"usecasetraceablity": "Traceablity",
Expand Down
6 changes: 3 additions & 3 deletions src/components/pages/CompanyRoles/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export default function CompanyRoles() {
} else if (url.indexOf('companyrolesserviceprovider') > 1) {
setCompanyRoles(data.serviceProvider)
setLinkArray(data.serviceProvider.subNavigation)
} else if (url.indexOf('companyrolesconfirmitybody') > 1) {
setCompanyRoles(data.confirmity)
setLinkArray(data.confirmity.subNavigation)
} else if (url.indexOf('companyrolesconformitybody') > 1) {
setCompanyRoles(data.conformity)
setLinkArray(data.conformity.subNavigation)
} else if (url.indexOf('companyrolesonboardingserviceprovider') > 1) {
setCompanyRoles(data.ospProvider)
setLinkArray(data.ospProvider.subNavigation)
Expand Down
2 changes: 1 addition & 1 deletion src/services/CommonService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export interface CompanyRolesType {
sections: []
subNavigation: SubNavigationType[]
}
confirmity: {
conformity: {
title: string
description: string
sections: []
Expand Down
4 changes: 2 additions & 2 deletions src/types/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ export const ALL_PAGES: IPage[] = [
{ name: PAGES.LOGOUT, element: <Logout /> },
{ name: PAGES.INTRODUCTION, element: <CompanyRoles /> },
{ name: PAGES.INTRODUCTION_APP_PROVIDER, element: <CompanyRoles /> },
{ name: PAGES.INTRODUCTION_CONFIRMITY_BODY, element: <CompanyRoles /> },
{ name: PAGES.INTRODUCTION_CONFORMITY_BODY, element: <CompanyRoles /> },
{ name: PAGES.INTRODUCTION_OSP_BODY, element: <CompanyRoles /> },
{ name: PAGES.INTRODUCTION_PARTICIPANT, element: <CompanyRoles /> },
{ name: PAGES.INTRODUCTION_SERVICE_PROVIDER, element: <CompanyRoles /> },
Expand Down Expand Up @@ -704,7 +704,7 @@ export const mainMenuFullTree = [
{ name: PAGES.INTRODUCTION_PARTICIPANT, hint: HINTS.NEW },
{ name: PAGES.INTRODUCTION_APP_PROVIDER, hint: HINTS.NEW },
{ name: PAGES.INTRODUCTION_SERVICE_PROVIDER, hint: HINTS.NEW },
{ name: PAGES.INTRODUCTION_CONFIRMITY_BODY, hint: HINTS.NEW },
{ name: PAGES.INTRODUCTION_CONFORMITY_BODY, hint: HINTS.NEW },
{ name: PAGES.INTRODUCTION_OSP_BODY, hint: HINTS.NEW },
],
},
Expand Down
2 changes: 1 addition & 1 deletion src/types/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export enum PAGES {
INTRODUCTION_PARTICIPANT = 'companyrolesparticipant',
INTRODUCTION_APP_PROVIDER = 'companyrolesappprovider',
INTRODUCTION_SERVICE_PROVIDER = 'companyrolesserviceprovider',
INTRODUCTION_CONFIRMITY_BODY = 'companyrolesconfirmitybody',
INTRODUCTION_CONFORMITY_BODY = 'companyrolesconformitybody',
INTRODUCTION_OSP_BODY = 'companyrolesonboardingserviceprovider',
USE_CASE = 'usecase',
USE_CASE_TRACABILITY = 'usecasetraceablity',
Expand Down

0 comments on commit b29853b

Please sign in to comment.