react-drift icon indicating copy to clipboard operation
react-drift copied to clipboard

How to set config via react component?

Open Aditya94A opened this issue 4 years ago • 0 comments

<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..)

Aditya94A avatar May 18 '20 03:05 Aditya94A