We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5494f3 commit 5bb4290Copy full SHA for 5bb4290
src/components/Buttons/ButtonLink.tsx
@@ -8,23 +8,8 @@ export type ButtonLinkProps = LinkProps &
8
customEventOptions?: MatomoEventOptions
9
}
10
11
-const ButtonLink = ({
12
- customEventOptions,
13
- onClick,
14
- ...props
15
-}: ButtonLinkProps) => {
16
- const handleClick = () => {
17
- customEventOptions && trackCustomEvent(customEventOptions)
18
- }
19
-
20
- return (
21
- <Button
22
- as={BaseLink}
23
- activeStyle={{}}
24
- {...props}
25
- onClick={onClick ? onClick : handleClick}
26
- />
27
- )
+const ButtonLink = ({ ...props }: ButtonLinkProps) => {
+ return <Button as={BaseLink} activeStyle={{}} {...props} />
28
29
30
export default ButtonLink
0 commit comments