-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
Hello! I noticed a potential issue within the final-code
directory for trekbag
:
The ButtonGroup
component is not passing children to the Button
component despite the Button
component being written to accept the children
prop (not the text
prop):
Professional-React-and-Next.js-Course/trekbag/final-code/src/components/ButtonGroup.jsx
Lines 34 to 39 in 64c3b0d
<Button | |
key={button.text + button.onClick.toString()} | |
text={button.text} | |
onClick={button.onClick} | |
buttonType="secondary" | |
/> |
This results in each Button's text not showing:
Adjusting the ButtonGroup
component like so fixes the issue:
Metadata
Metadata
Assignees
Labels
No labels