Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NavItem + onClick #307

Closed
sylvainlg opened this issue Nov 29, 2022 · 1 comment · Fixed by #312
Closed

NavItem + onClick #307

sylvainlg opened this issue Nov 29, 2022 · 1 comment · Fixed by #312

Comments

@sylvainlg
Copy link
Contributor

sylvainlg commented Nov 29, 2022

Hi,

I need to add a menu entry that opens a modal to subscribe to the newsletter but NavItem don't accept onClick prop.
Is there a way to do this?

      <NavItem
        onClick={() => toggleSubscribeNewsletterModal()}
        title={t("Footer.Je m'abonne à la newsletter", "S'inscrire à la newsletter")}
      />

Thanks

@desoindx
Copy link
Collaborator

desoindx commented Dec 1, 2022

Hello Sylvainig,

there is currently no way to do that, but I'll add it as soon as possible (or if you want to create a PR you're welcome :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants