Skip to content

Commit

Permalink
Support rest prop in VuiSummaryCitation.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Nov 8, 2023
1 parent b5dea65 commit 0330469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/summary/SummaryCitation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ type Props = {
onClick?: () => void;
};

export const VuiSummaryCitation = ({ reference, isSelected, onClick }: Props) => {
export const VuiSummaryCitation = ({ reference, isSelected, onClick, ...rest }: Props) => {
const classes = classNames("vuiSummaryCitation", {
"vuiSummaryCitation-isSelected": isSelected
});

return (
<button className={classes} onClick={onClick}>
<button className={classes} onClick={onClick} {...rest}>
{reference}
</button>
);
Expand Down

0 comments on commit 0330469

Please sign in to comment.