Skip to content

Commit 61495b0

Browse files
committed
refactor: props 컨벤션 적용
Props 인터페이스 선언 시 컴포넌트 + Props 로 해야하는데 컨벤션을 지키지 못해서 이 부분 수정 Resolve: #98
1 parent c478eac commit 61495b0

File tree

1 file changed

+2
-3
lines changed
  • client/src/components/common/CopyButton

1 file changed

+2
-3
lines changed

client/src/components/common/CopyButton/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { BiCopy } from '@react-icons/all-files/bi/BiCopy';
2-
import React from 'react';
32

4-
interface CopyButton {
3+
interface CopyButtonProps {
54
target: string;
65
className?: string;
76
}
87

9-
function CopyButton({ target, className }: CopyButton) {
8+
function CopyButton({ target, className }: CopyButtonProps) {
109
const onCopy = async () => {
1110
try {
1211
await navigator.clipboard.writeText(target);

0 commit comments

Comments
 (0)