mirror of
https://github.com/overleaf/overleaf.git
synced 2025-12-05 01:10:29 +00:00
Merge pull request #30078 from overleaf/ae-workbench-code-blocks
Update code block styles GitOrigin-RevId: b8a871ba7eb429bb5a359c823d5da0ed6717c021
This commit is contained in:
committed by
Copybot
parent
2aeb788e3f
commit
ff8e9394f3
@@ -8,7 +8,8 @@ export const CopyToClipboard = memo<{
|
||||
content: string
|
||||
tooltipId: string
|
||||
kind?: 'text' | 'icon'
|
||||
}>(({ content, tooltipId, kind = 'icon' }) => {
|
||||
unfilled?: boolean
|
||||
}>(({ content, tooltipId, kind = 'icon', unfilled = false }) => {
|
||||
const { t } = useTranslation()
|
||||
|
||||
const [copied, setCopied] = useState(false)
|
||||
@@ -49,6 +50,7 @@ export const CopyToClipboard = memo<{
|
||||
accessibilityLabel={t('copy')}
|
||||
className="copy-button"
|
||||
icon={copied ? 'check' : 'content_copy'}
|
||||
unfilled={unfilled}
|
||||
/>
|
||||
)}
|
||||
</OLTooltip>
|
||||
|
||||
Reference in New Issue
Block a user