Skip to content

Commit

Permalink
fix: Links not redirecting on flagship app on Android
Browse files Browse the repository at this point in the history
We need to add the onClick prop to make the button work on flagship app.
  • Loading branch information
zatteo committed Sep 26, 2024
1 parent 6aa72df commit 1f51349
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Views/EmptyDataView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ export const EmptyDataView = () => {
}}
>
<AppLinker app={{ slug: 'pronote' }} href={pronoteKonnectorUrl}>
{({ href }) => (
{({ onClick, href }) => (
<Button
onClick={onClick}
variant="secondary"
label={t('Layout.importFromButton') + ' Pronote'}
startIcon={<img src={PronoteIcon} alt="Pronote" />}
Expand All @@ -54,8 +55,9 @@ export const EmptyDataView = () => {
</AppLinker>

<AppLinker app={{ slug: 'store' }} href={storeEducationUrl}>
{({ href }) => (
{({ onClick, href }) => (
<Button
onClick={onClick}
variant="ghost"
label={t('Layout.exploreServices')}
style={{ width: '100%' }}
Expand Down

0 comments on commit 1f51349

Please sign in to comment.