Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
hj940709 committed Sep 18, 2024
1 parent ba81c54 commit 629af98
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 10 deletions.
16 changes: 11 additions & 5 deletions client/components/GroupView/GroupKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useSelector, useDispatch } from 'react-redux'
import { setNotification } from 'Utilities/redux/notificationReducer'
import { CopyToClipboard } from 'react-copy-to-clipboard'
import { FormattedMessage } from 'react-intl'
import { Icon } from 'semantic-ui-react'
import { Icon, Popup } from 'semantic-ui-react'
import { Button } from 'react-bootstrap'

const GroupKey = () => {
Expand All @@ -25,12 +25,18 @@ const GroupKey = () => {
wordBreak: 'break-all',
}}
>
<span style={{ margin: 'auto', padding: '0.5em' }}>{token}</span>
<CopyToClipboard text={token}>
<Button type="button" onClick={handleTokenCopy}>
<Icon name="copy" size="large" />
</Button>
<Popup
position="top center"
content={<FormattedMessage id="copy-key" />}
trigger={
<Button type="button" onClick={handleTokenCopy}>
<Icon name="copy" size="large" />
</Button>
}
/>
</CopyToClipboard>
<span style={{ margin: 'auto', padding: '0.5em' }}>{token}</span>
</div>
<div
style={{
Expand Down
3 changes: 2 additions & 1 deletion client/util/translations/revita/en/LC_MESSAGES/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1670,5 +1670,6 @@
"explain-wordnest-modal": "Word-nest: Go to see other related words",
"Menu-more": "More",
"explain-library-search": "Here you can search for text contained in the story",
"lesson-performance-info-tooltip": "This is your current level of performance on this topic: percent of correct answers in exercises"
"lesson-performance-info-tooltip": "This is your current level of performance on this topic: percent of correct answers in exercises",
"copy-key": "Copy key"
}
3 changes: 2 additions & 1 deletion client/util/translations/revita/fi/LC_MESSAGES/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1669,5 +1669,6 @@
"explain-wordnest-modal": "Sanapesä: katso muut liittyvät sanat",
"Menu-more": "Lisää",
"explain-library-search": "Hae tarinoita sanan tai lauseen perusteella.",
"lesson-performance-info-tooltip": "Nykyinen suoritustasosi tästä aiheesta: prosenttiosuus oikeista vastauksista harjoituksissa"
"lesson-performance-info-tooltip": "Nykyinen suoritustasosi tästä aiheesta: prosenttiosuus oikeista vastauksista harjoituksissa",
"copy-key": "Kopioi avain"
}
3 changes: 2 additions & 1 deletion client/util/translations/revita/it/LC_MESSAGES/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1668,5 +1668,6 @@
"explain-wordnest-modal": "Nido di parole: Vai a vedere altre parole correlate",
"Menu-more": "Ulteriori informazioni",
"explain-library-search": "Qui puoi cercare una parola o una frase contenuta nel testo",
"lesson-performance-info-tooltip": "Tuo livello attuale di prestazione su questo argomento: percentuale di risposte corrette negli esercizi"
"lesson-performance-info-tooltip": "Tuo livello attuale di prestazione su questo argomento: percentuale di risposte corrette negli esercizi",
"copy-key": "Copia chiave"
}
3 changes: 2 additions & 1 deletion client/util/translations/revita/ru/LC_MESSAGES/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1671,5 +1671,6 @@
"explain-wordnest-modal": "Словарное гнездо: родственные слова",
"Menu-more": "Больше информации",
"explain-library-search": "Поиск по словам в тексте",
"lesson-performance-info-tooltip": "Твой уровень успеваемости по этой теме на данный момент: процент правильных ответов на упражнения"
"lesson-performance-info-tooltip": "Твой уровень успеваемости по этой теме на данный момент: процент правильных ответов на упражнения",
"copy-key": "Скопировать ключ"
}
3 changes: 2 additions & 1 deletion client/util/translations/revita/zh/LC_MESSAGES/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1043,5 +1043,6 @@
"explain-wordnest-modal": "Word-nest: Go to see other related words",
"Menu-more": "更多信息",
"explain-library-search": "您可在此处按文中词句搜索",
"lesson-performance-info-tooltip": "This is your current level of performance on this topic: percent of correct answers in exercises"
"lesson-performance-info-tooltip": "This is your current level of performance on this topic: percent of correct answers in exercises",
"copy-key": "复制代码"
}

0 comments on commit 629af98

Please sign in to comment.