Skip to content

Commit d361c0e

Browse files
committed
Fix wrong component name and copy function
1 parent cd0e404 commit d361c0e

File tree

1 file changed

+4
-4
lines changed
  • src/components/Generator/GeneredTaskfile/SaveFile

1 file changed

+4
-4
lines changed

src/components/Generator/GeneredTaskfile/SaveFile/SaveFile.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ type CopyProps = {
88
content: string;
99
};
1010

11-
const CopyToClipboard = ({ content }: CopyProps): ReactElement => {
11+
const SaveFile = ({ content }: CopyProps): ReactElement => {
1212
const [isCopied, setCopied] = useState(false);
1313

14-
const onClick = (): void => {
14+
const copyToClipboard = (): void => {
1515
setCopied(true);
1616
navigator.clipboard.writeText(content);
1717

@@ -34,11 +34,11 @@ const CopyToClipboard = ({ content }: CopyProps): ReactElement => {
3434
<button
3535
type="button"
3636
className={`${styles.copy} ${isCopied && styles.copied}`}
37-
onClick={onClick}
37+
onClick={copyToClipboard}
3838
title="Copy Taskfile content"
3939
/>
4040
</div>
4141
);
4242
};
4343

44-
export default CopyToClipboard;
44+
export default SaveFile;

0 commit comments

Comments
 (0)