mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-21 22:50:59 -05:00
feat: add separator to recovery codes when copying
This commit is contained in:
parent
64e7038532
commit
62a427b7a7
1 changed files with 9 additions and 2 deletions
|
@ -23,6 +23,11 @@ const List = styled.div`
|
|||
span {
|
||||
user-select: text;
|
||||
}
|
||||
|
||||
i {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
|
@ -73,8 +78,10 @@ export default function MFARecovery({
|
|||
onClose={onClose}
|
||||
signal={signal}>
|
||||
<List>
|
||||
{known.map((code) => (
|
||||
<span key={code}>{code}</span>
|
||||
{known.map((code, index) => (
|
||||
<span key={code}>
|
||||
{code} {index !== known.length && <i>{","}</i>}
|
||||
</span>
|
||||
))}
|
||||
</List>
|
||||
</Modal>
|
||||
|
|
Loading…
Reference in a new issue