File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/shared/components/button Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 11import { cva , type VariantProps } from 'class-variance-authority' ;
22import { 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
1110const 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 ;
You can’t perform that action at this time.
0 commit comments