mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
feat: add separator to recovery codes when copying
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user