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

Extend behaviour of component InfoBlockText #3830

Open
stbnrivas opened this issue Apr 19, 2021 · 1 comment
Open

Extend behaviour of component InfoBlockText #3830

stbnrivas opened this issue Apr 19, 2021 · 1 comment

Comments

@stbnrivas
Copy link
Contributor

related #3032
Maybe interesting extend the behavior of InfoBlockText to "detect" the text received as input is a link and show as anchor tag. I don't know whether it is interesting.

@Crashillo
Copy link
Member

This is an improvement you can do. Once you get how a component works, now you can begin to alter it.

InfoBlockText & InfoBlockLink are basically the same, so having both is quite worthless. Now you know how the props/components relationship is, you can create the logic to handle one extra prop in InfoBlockText and display a conditional template based on that value.

Any doubts, stack overflow you can ask me

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

No branches or pull requests

2 participants