feat: add separator to recovery codes when copying

This commit is contained in:
Paul Makles 2022-07-15 16:41:02 +01:00
parent 64e7038532
commit 62a427b7a7

View file

@ -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>