mirror of
https://github.com/wassname/talk.git
synced 2026-07-06 05:17:19 +08:00
Translations :/
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { Localized as L } from "fluent-react/compat";
|
||||
import React from "react";
|
||||
import CopyToClipboard from "react-copy-to-clipboard";
|
||||
import { Button, Popover, TextField } from "talk-ui/components";
|
||||
@@ -49,13 +50,25 @@ class PermalinkPopover extends React.Component<InnerProps> {
|
||||
<div className={styles.root}>
|
||||
<TextField defaultValue={commentId} className={styles.textField} />
|
||||
<CopyToClipboard text={commentId} onCopy={this.onCopy}>
|
||||
<Button primary>{copied ? "Copied!" : "Copy"}</Button>
|
||||
<Button primary>
|
||||
{copied ? (
|
||||
<L id="copied">
|
||||
<span>Copied!</span>
|
||||
</L>
|
||||
) : (
|
||||
<L id="copy">
|
||||
<span>Copy</span>
|
||||
</L>
|
||||
)}
|
||||
</Button>
|
||||
</CopyToClipboard>
|
||||
</div>
|
||||
}
|
||||
>
|
||||
<button className={styles.shareButton} onClick={this.onClick}>
|
||||
Share
|
||||
<L id="share">
|
||||
<span>Share</span>
|
||||
</L>
|
||||
</button>
|
||||
</Popover>
|
||||
);
|
||||
|
||||
@@ -49,7 +49,6 @@ class Button extends React.Component<InnerProps> {
|
||||
[classes.secondary]: secondary,
|
||||
});
|
||||
|
||||
console.log(this.props);
|
||||
return (
|
||||
<BaseButton
|
||||
className={rootClassName}
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
postCommentForm-submit = Post
|
||||
share = Share
|
||||
copy = Copy
|
||||
copied = Copied
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
share = Compartir
|
||||
copy = Copiar
|
||||
copied = Copiado
|
||||
|
||||
Reference in New Issue
Block a user