Skip to content

Commit

Permalink
Add rest props
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed Nov 13, 2019
1 parent 41d0971 commit 39fbdc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/docusaurus-theme-classic/src/theme/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './styles.module.css';

function FooterLink({to, href, label}) {
function FooterLink({to, href, label, ...props}) {
const toUrl = useBaseUrl(to);
return (
<Link
className="footer__link-item"
{...props}
{...(href
? {
target: '_blank',
Expand Down

0 comments on commit 39fbdc6

Please sign in to comment.