Skip to content

Comments for understanding tag prop type error #52

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/components/layout/MainNavbar/NavbarNav/UserActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ export default class UserActions extends React.Component {
<span className="d-none d-md-inline-block">Sierra Brooks</span>
</DropdownToggle>
<Collapse tag={DropdownMenu} right small open={this.state.visible}>
{/* This tag prop works to link to the correct page, however it's throwing a warning in console
that prop type is not correct.
Link to issue: https://github.com/DesignRevision/shards-dashboard-react/issues/26
Docs for Shards React Dropdowns: https://designrevision.com/docs/shards-react/component/dropdown
Docs for React Router Link: https://reactrouter.com/web/api/Link */}
<DropdownItem tag={Link} to="user-profile">
<i className="material-icons">&#xE7FD;</i> Profile
</DropdownItem>
Expand Down