Skip to content

Commit e02ef01

Browse files
committed
fix
1 parent 5455d61 commit e02ef01

File tree

1 file changed

+22
-25
lines changed
  • apify-docs-theme/src/theme/LLMButtons

1 file changed

+22
-25
lines changed

apify-docs-theme/src/theme/LLMButtons/index.jsx

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -84,31 +84,28 @@ export default function LLMButtons() {
8484
return (
8585
<Menu
8686
components={{
87-
MenuBase: ({ children, ref, ...props }) => {
88-
console.log(props);
89-
return (
90-
<div ref={ref} className={styles.llmButton}>
91-
<CopyIcon size={16} />
92-
<Text
93-
size="regular"
94-
className={styles.llmButtonText}
95-
onClick={onCopyAsMarkdownClick}
96-
>
97-
{isCopyingLoading
98-
? 'Copying...'
99-
: isCopied
100-
? 'Copied!'
101-
: 'Copy for LLM'}
102-
</Text>
103-
<ChevronDownIcon
104-
{...props}
105-
size="16"
106-
color={theme.color.neutral.icon}
107-
className={styles.chevronIcon}
108-
/>
109-
</div>
110-
);
111-
},
87+
MenuBase: ({ children, ref, ...props }) => (
88+
<div ref={ref} className={styles.llmButton}>
89+
<CopyIcon size={16} />
90+
<Text
91+
size="regular"
92+
className={styles.llmButtonText}
93+
onClick={onCopyAsMarkdownClick}
94+
>
95+
{isCopyingLoading
96+
? 'Copying...'
97+
: isCopied
98+
? 'Copied!'
99+
: 'Copy for LLM'}
100+
</Text>
101+
<ChevronDownIcon
102+
{...props}
103+
size="16"
104+
color={theme.color.neutral.icon}
105+
className={styles.chevronIcon}
106+
/>
107+
</div>
108+
),
112109
}}
113110
onSelect={onMenuOptionClick}
114111
options={[

0 commit comments

Comments
 (0)