mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 07:00:58 -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 {
|
span {
|
||||||
user-select: text;
|
user-select: text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
opacity: 0;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -73,8 +78,10 @@ export default function MFARecovery({
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
signal={signal}>
|
signal={signal}>
|
||||||
<List>
|
<List>
|
||||||
{known.map((code) => (
|
{known.map((code, index) => (
|
||||||
<span key={code}>{code}</span>
|
<span key={code}>
|
||||||
|
{code} {index !== known.length && <i>{","}</i>}
|
||||||
|
</span>
|
||||||
))}
|
))}
|
||||||
</List>
|
</List>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
Loading…
Reference in a new issue