mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-10-15 11:35:44 -04:00
consistent use of arrow functions/default exports
This commit is contained in:
34 files changed
+2956
-2985
No files matched your search
@@ -10,7 +10,7 @@ type Props = {
|
||||
timeout?: number;
|
||||
};
|
||||
|
||||
export default function CopyButton({ content, timeout = 2000 }: Props) {
|
||||
const CopyButton = ({ content, timeout = 2000 }: Props) => {
|
||||
const [copied, setCopied] = useState(false);
|
||||
|
||||
const handleCopy = (e) => {
|
||||
@@ -54,4 +54,6 @@ export default function CopyButton({ content, timeout = 2000 }: Props) {
|
||||
)}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export default CopyButton;
|
||||
Reference in new issue
Block a user