mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-04-20 08:16:38 +02:00
Merge branch 'fix-copy-input' into 'dev'
Refactor CopyInput component See merge request turris/reforis/foris-js!241
This commit is contained in:
commit
f34d9bbdbd
@ -48,7 +48,6 @@ function CopyInput({ value, ...props }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Input type="text" value={value} ref={inputTextRef} {...props}>
|
<Input type="text" value={value} ref={inputTextRef} {...props}>
|
||||||
<div className="input-group-append">
|
|
||||||
<button
|
<button
|
||||||
className="btn btn-outline-secondary"
|
className="btn btn-outline-secondary"
|
||||||
type="button"
|
type="button"
|
||||||
@ -56,7 +55,6 @@ function CopyInput({ value, ...props }) {
|
|||||||
>
|
>
|
||||||
<span>{isCopied ? _("Copied!") : _("Copy")}</span>
|
<span>{isCopied ? _("Copied!") : _("Copy")}</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
</Input>
|
</Input>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user