Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replace Twilio Flex Logo

I am looking to replace the flex logo at the top of our instance with our own logo, but I can't seem to find any documentation on how to do this via a plugin.

Is this possible and how do you do it?

like image 568
JohnC Avatar asked Jul 19 '19 13:07

JohnC


1 Answers

As per Flex UI documentation you can change default properties for components using React defaultprops API programmatically:

componentProps: { [Component Name]: { [Prop Name]: [PropValue] } }

Example:

flex.MainHeader
  .defaultProps
  .logoUrl = "https://static0.twilio.com/marketing/bundles/archetype.alpha/img/logo-wordmark--red.svg";

In addition you can find all the configurable components and their defaultProps here

Hope it will help you.

like image 164
Vit Avatar answered Nov 11 '22 10:11

Vit