Skip to content

Commit ccf4ee0

Browse files
committed
fix/common-button
1 parent 3f6cdf8 commit ccf4ee0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/shared/components/button/CommonButton.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { cva, type VariantProps } from 'class-variance-authority';
22
import { cn } from '@/shared/lib';
33

4-
interface CummonButtonProps
4+
interface CommonButtonProps
55
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
66
VariantProps<typeof buttonStyle> {
77
label: string;
8-
group?: string;
98
}
109

1110
const buttonStyle = cva(
@@ -28,17 +27,15 @@ const buttonStyle = cva(
2827
}
2928
);
3029

31-
const CummonButton = ({
30+
const CommonButton = ({
3231
label,
3332
variant,
34-
group,
3533
className,
3634
...props
37-
}: CummonButtonProps) => {
35+
}: CommonButtonProps) => {
3836
return (
3937
<button
4038
type="button"
41-
data-group={group}
4239
className={cn(buttonStyle({ variant }), className)}
4340
{...props}
4441
>
@@ -47,4 +44,4 @@ const CummonButton = ({
4744
);
4845
};
4946

50-
export default CummonButton;
47+
export default CommonButton;

0 commit comments

Comments
 (0)