Skip to content

Commit

Permalink
fix(home page): fix failing click on apps navigation (#1285)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalgaurav-bmw authored Nov 7, 2024
1 parent bc1179e commit f154f8e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
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

### Bugfixes

- **Home Page**
- fixed clicking on apps in Home page URL navigation failed [#1285](https://github.com/eclipse-tractusx/portal-frontend/pull/1285)

## 2.3.0-RC2

### Bugfixes
Expand Down
10 changes: 9 additions & 1 deletion src/components/pages/Home/components/AppStoreSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
********************************************************************************/

import { useTranslation } from 'react-i18next'
import { Cards, Button, Typography } from '@catena-x/portal-shared-components'
import {
Cards,
Button,
Typography,
type CardItems,
} from '@catena-x/portal-shared-components'
import { useNavigate } from 'react-router-dom'
import './app-store-section.scss'
import { useFetchActiveAppsQuery } from 'features/apps/apiSlice'
Expand Down Expand Up @@ -51,6 +56,9 @@ export default function AppStoreSection() {
expandOnHover={false}
filledBackground={true}
imageLoader={fetchImageWithToken}
onCardClick={(item: CardItems) => {
navigate(`/appdetail/${item.id}`)
}}
/>
)}
<Button
Expand Down

0 comments on commit f154f8e

Please sign in to comment.