1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-06-16 13:46:16 +02:00

Compare commits

..

2 Commits

Author SHA1 Message Date
a352f12279 Merge branch 'dev' into 'master'
Dev

See merge request turris/reforis/foris-js!240
2024-09-20 14:06:10 +02:00
bb559cbe53 Merge branch 'dev' into 'master'
Dev

See merge request turris/reforis/foris-js!236
2024-08-30 16:03:17 +02:00

View File

@ -48,13 +48,15 @@ function CopyInput({ value, ...props }) {
return ( return (
<Input type="text" value={value} ref={inputTextRef} {...props}> <Input type="text" value={value} ref={inputTextRef} {...props}>
<button <div className="input-group-append">
className="btn btn-outline-secondary" <button
type="button" className="btn btn-outline-secondary"
onClick={handleCopyClick} type="button"
> onClick={handleCopyClick}
<span>{isCopied ? _("Copied!") : _("Copy")}</span> >
</button> <span>{isCopied ? _("Copied!") : _("Copy")}</span>
</button>
</div>
</Input> </Input>
); );
} }