Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Fix incompatibility with latest react-router-dom #891

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/link-list/src/js/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ export const AUlinkListItem = ({ text, link, linkComponent, li = {}, children, o
// If we are using a normal link
if( LinkComponent === 'a' ) {
attributeOptions.href = link;
}
// If we are using a link component
else if( typeof LinkComponent === 'function' ) {
} else {
// If we are using a link component
attributeOptions.to = link;
}

Expand Down