Skip to content

Commit

Permalink
Fix i18n error in CopyLinkButton (#3235)
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon committed Oct 1, 2021
1 parent b7559ac commit 3002201
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -63,12 +63,14 @@ const copyLinkToClipboard = (event, props) => {
}

function CopyLinkButton (props) {
const { i18n } = props

return (
<button
className="uppy-u-reset uppy-Dashboard-Item-action uppy-Dashboard-Item-action--copyLink"
type="button"
aria-label={props.i18n('copyLink')}
title={props.i18n('copyLink')}
aria-label={i18n('copyLink')}
title={i18n('copyLink')}
onClick={(event) => copyLinkToClipboard(event, props)}
>
<svg aria-hidden="true" focusable="false" className="uppy-c-icon" width="14" height="14" viewBox="0 0 14 12">
Expand Down Expand Up @@ -114,6 +116,7 @@ module.exports = function Buttons (props) {
<CopyLinkButton
file={file}
uppy={uppy}
i18n={i18n}
/>
) : null}
{showRemoveButton ? (
Expand Down

0 comments on commit 3002201

Please sign in to comment.