You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if the component could inform its parent about what color it is, very useful for use-cases like this: digitalungdom-se/digitalungdom.se#125
I tried to implement it, However, I'm not used to writing typescript at all and I don't seem to be able to test if my code works in my local env. However, something along these lines might work:
I think perhaps a more clean solution would be to export the actual hashing function. So then you could get the exact same color by importing the below the functions. What do you think of something like that?
Using the setColor could create some dependency troubles in our use case with cards. You would have the BotIdenticon child set a property that a sibling (BackgroundBanner) to that child would depend on. Instead you could simply make the parent determine the color and give that to both the BotIdenticon and BackgroundBanner.
It would be great if the component could inform its parent about what color it is, very useful for use-cases like this: digitalungdom-se/digitalungdom.se#125
I think it should work like this:
I tried to implement it, However, I'm not used to writing typescript at all and I don't seem to be able to test if my code works in my local env. However, something along these lines might work:
The text was updated successfully, but these errors were encountered: