Skip to content

Commit 03f921b

Browse files
committed
fix copy link to prompt button
1 parent ce3ff97 commit 03f921b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/components/Courses/Course/Prompt.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const Prompt = ({ prompt, handleDelete, mandatoryPromptId }: { prompt: PromptTyp
8181
{t('course:directPromptLink')}
8282
</Link>
8383
<Tooltip title={t('course:copyDirectPromptLinkInfo')} placement="right">
84-
<IconButton size="small">
84+
<IconButton size="small" onClick={() => navigator.clipboard.writeText(directLink)}>
8585
<ContentCopyOutlined fontSize="small" />
8686
</IconButton>
8787
</Tooltip>

0 commit comments

Comments
 (0)