import InitialsBox from '....... relative path here ......'
...
<div className="initials-box-wrapper">
<InitialsBox firstWord={"put Cohort/Student name in here"} secondWord={"put Student second name here"} />
</div>
Why the wrapper?
Because the <InitialsBox> does not have a width and a height defined in its core. So we need a wrapper to give the elements those CSS atributes.
[ ] InitialsBox must have the final size of 40px by 40px. Check it though the inspector of your Browser.
Wait for issue #180 to be merged. Git pull and then work.
The InitialsApi being used in some components will be useless soon due to a new feature that is being merged #180
Files using this API (To be updated):
<img>
element.What to replace:
The replacer:
Why the wrapper?
Because the
<InitialsBox>
does not have awidth
and aheight
defined in its core. So we need a wrapper to give the elements those CSS atributes.🧙♂️