diff --git a/guids-generator.html b/guids-generator.html index cb5bcb8..07c0e22 100644 --- a/guids-generator.html +++ b/guids-generator.html @@ -82,6 +82,16 @@ table: { padding: "0", }, + copyButton: { + float: "right", + }, + copyButtonSuccess: { + float: "right", + backgroundColor: theme.palette.success.main, + "&:hover,&:focus,&:visited,&": { + backgroundColor: theme.palette.success.dark, + } + }, })); const StyledTableCell = withStyles((theme) => ({ @@ -405,6 +415,13 @@ }) } + let onCopyButtonClick = () => { + setCopied(true); + setTimeout(function() { + setCopied(false); + }, 3000); + } + return (
GUID generator @@ -493,13 +510,15 @@ Health card # Province Date of birth - GUID - item.isError ? '' : bhashes[item.index].value).join('\t')} onCopy={() => setCopied(true)}> - - file_copy - + GUID + item.isError ? '' : bhashes[item.index].value).join('\n\r')} onCopy={() => onCopyButtonClick()}> + - { copied ? Copied : null }