From bf35fab40888d099039191f23500a128dd9a524b Mon Sep 17 00:00:00 2001 From: winkerVSbecks Date: Fri, 20 Nov 2020 15:41:18 -0500 Subject: [PATCH] Add default tooltips for copied and uncopied states --- src/components/clipboard/Clipboard.tsx | 4 ++-- src/components/clipboard/ClipboardInput.tsx | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/clipboard/Clipboard.tsx b/src/components/clipboard/Clipboard.tsx index c69c0605..590f2e58 100644 --- a/src/components/clipboard/Clipboard.tsx +++ b/src/components/clipboard/Clipboard.tsx @@ -67,8 +67,8 @@ export const Clipboard = ({ Clipboard.defaultProps = { copyOptions: undefined, - renderCopiedTooltip: () => {}, - renderUncopiedTooltip: () => {}, + renderCopiedTooltip: () => , + renderUncopiedTooltip: () => , resetTimeout: 3000, toCopy: undefined, getCopyContent: () => '', diff --git a/src/components/clipboard/ClipboardInput.tsx b/src/components/clipboard/ClipboardInput.tsx index 45a2f925..dc0d9e65 100644 --- a/src/components/clipboard/ClipboardInput.tsx +++ b/src/components/clipboard/ClipboardInput.tsx @@ -8,7 +8,6 @@ import { ClipboardIcon } from './ClipboardIcon'; const Container = styled.div` position: relative; - margin-top: 15px; `; const StyledInput = styled(Input)`