From 12e2f574e040e743f5c823fd215d6be89909ce9d Mon Sep 17 00:00:00 2001 From: kavabunga Date: Tue, 16 Jan 2024 16:44:09 +0200 Subject: [PATCH] fix: rename button component --- .../{button => button-default}/button.module.scss | 0 src/components/{button => button-default}/index.tsx | 8 ++++---- src/components/making-order-btn/index.tsx | 6 +++--- src/components/payment-button/index.tsx | 2 +- .../review-and-rating-post-form/index.tsx | 2 +- src/components/top-selling-this-week/index.tsx | 2 +- src/pages/product/index.tsx | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) rename src/components/{button => button-default}/button.module.scss (100%) rename src/components/{button => button-default}/index.tsx (85%) diff --git a/src/components/button/button.module.scss b/src/components/button-default/button.module.scss similarity index 100% rename from src/components/button/button.module.scss rename to src/components/button-default/button.module.scss diff --git a/src/components/button/index.tsx b/src/components/button-default/index.tsx similarity index 85% rename from src/components/button/index.tsx rename to src/components/button-default/index.tsx index da9e54e8..08535b98 100644 --- a/src/components/button/index.tsx +++ b/src/components/button-default/index.tsx @@ -1,7 +1,7 @@ import clsx from 'clsx'; import styles from './button.module.scss'; -export type ButtonProps = { +export type ButtonDefaultProps = { buttonText: string; buttonStyle: | 'green-border-button' @@ -15,7 +15,7 @@ export type ButtonProps = { type?: 'button' | 'submit' | 'reset'; }; -const Button = ({ +const ButtonDefault = ({ buttonText, buttonStyle, classNameActive, @@ -23,7 +23,7 @@ const Button = ({ disabled, classNames, type, -}: ButtonProps) => { +}: ButtonDefaultProps) => { return (