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 2a8f3d2 commit 485df56Copy full SHA for 485df56
src/AgentConnectButton.tsx
@@ -34,12 +34,14 @@ export const AgentConnectButton = memo(
34
const { t } = useTranslation();
35
36
const Inner = onClick !== undefined ? "button" : "a";
37
- const innerProps = (onClick !== undefined ? { onClick } : { href }) as any;
38
39
return (
40
<div className={className} style={style} ref={ref}>
41
<span className="agentconnect-button__preload-hover" />
42
- <Inner className="agentconnect-button__link" {...innerProps} />
+ <Inner
+ className="agentconnect-button__link"
43
+ {...((onClick !== undefined ? { onClick } : { href }) as any)}
44
+ />
45
<p>
46
<a
47
className={cx(
0 commit comments