update copy button text

main
Mike Fix 6 years ago
parent 004ac6c902
commit 25fa1eec6e

@ -16,7 +16,7 @@ function ExportButton({ router, children, color }) {
<React.Fragment> <React.Fragment>
{children === 'COPY EMBED' ? ( {children === 'COPY EMBED' ? (
<CopyButton text={toIFrame(router.asPath)}> <CopyButton text={toIFrame(router.asPath)}>
{({ copied }) => <button>{copied ? 'COPIED!' : 'EMBED CODE'}</button>} {({ copied }) => <button>{copied ? 'COPIED!' : 'COPY EMBED'}</button>}
</CopyButton> </CopyButton>
) : ( ) : (
<button>{children}</button> <button>{children}</button>

Loading…
Cancel
Save