Skip to content

Commit

Permalink
feat(company subscription): update API and fix tab UI scroll (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw authored Sep 24, 2024
1 parent ffc6948 commit f251717
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Change

- **Company Subscriptions**
- update API query parameters and fix tab UI scroll [#1131](https://github.com/eclipse-tractusx/portal-frontend/pull/1131)

### Bugfixes

- **Connector Management**
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/CompanySubscriptions/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export default function CompanySubscriptions() {
<Tabs
value={currentActive}
onChange={handleTabChange}
sx={{ margin: '0 18% 20px' }}
sx={{ margin: '0 auto 20px', maxWidth: '1110px', width: '100%' }}
>
<Tab
iconPosition="start"
Expand Down
6 changes: 2 additions & 4 deletions src/features/apps/apiSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,9 @@ export const apiSlice = createApi({
body.args.statusId !== CompanySubscriptionFilterType.SHOW_ALL
? `&status=${body.args.statusId}`
: ''
const companyName = body.args.expr
? `&companyName=${body.args.expr}`
: ''
const name = body.args.expr ? `&name=${body.args.expr}` : ''
return {
url: `${url}${statusId}${companyName}`,
url: `${url}${statusId}${name}`,
}
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,9 @@ export const apiSlice = createApi({
body.args.statusId !== CompanySubscriptionFilterType.SHOW_ALL
? `&status=${body.args.statusId}`
: ''
const companyName = body.args.expr
? `&companyName=${body.args.expr}`
: ''
const name = body.args.expr ? `&name=${body.args.expr}` : ''
return {
url: `${url}${statusId}${companyName}`,
url: `${url}${statusId}${name}`,
}
},
}),
Expand Down

0 comments on commit f251717

Please sign in to comment.