Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

How to set config via react component? #23

Open
Aditya94A opened this issue May 18, 2020 · 0 comments
Open

How to set config via react component? #23

Aditya94A opened this issue May 18, 2020 · 0 comments

Comments

@Aditya94A
Copy link

Aditya94A commented May 18, 2020

<script>

  drift.config({
   locale: 'en-US',
    messages: {
     welcomeMessage: 'Hey there!',
      awayMessage: "Hey, we're not here right now, but leave a message.",
      emailCaptureMessage: "Leave your email so we can get back to you.",
      thankYouMessage: "Thanks we'll follow up soon."
    },
    enableWelcomeMessage: false,
    enableCampaigns: false,
  })
  
</script>

https://devdocs.drift.com/docs/widget-configuration
The docs on website only specify how to do it via vanilla js. How to specify the above configuration parameters using react component? (I looked at the props, it doesn't seem to accept any of these..)

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

No branches or pull requests

1 participant