diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-13 17:09:53 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-02-13 17:09:53 +0700 |
| commit | a88dbd7f7b271e78290506fdc61d68adba5d0019 (patch) | |
| tree | 43f89a761f7b72cc936e45004a4fbda2f445f92c /src/components/elements | |
| parent | ada443445767679dd2d2b2c889bfac02609778b8 (diff) | |
Fixing
Diffstat (limited to 'src/components/elements')
| -rw-r--r-- | src/components/elements/ConfirmAlert.js | 4 | ||||
| -rw-r--r-- | src/components/elements/Image.js | 10 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/components/elements/ConfirmAlert.js b/src/components/elements/ConfirmAlert.js index 96f4029d..37e6a450 100644 --- a/src/components/elements/ConfirmAlert.js +++ b/src/components/elements/ConfirmAlert.js @@ -16,8 +16,8 @@ const ConfirmAlert = ({ <p className="h2 mb-2">{title}</p> <p className="text-gray_r-11 mb-6">{caption}</p> <div className="flex gap-x-2"> - <button className="flex-1 btn-light" onClick={onClose}>{closeText}</button> - <button className="flex-1 btn-red" onClick={onSubmit}>{submitText}</button> + <button className="flex-1 btn-yellow" onClick={onClose}>{closeText}</button> + <button className="flex-1 btn-solid-red" onClick={onSubmit}>{submitText}</button> </div> </div> </> diff --git a/src/components/elements/Image.js b/src/components/elements/Image.js index 8981547a..e03d81f7 100644 --- a/src/components/elements/Image.js +++ b/src/components/elements/Image.js @@ -1,7 +1,7 @@ import { LazyLoadImage } from "react-lazy-load-image-component"; import "react-lazy-load-image-component/src/effects/opacity.css"; -export default function Image({ src, alt, className = "" }) { +const Image = ({ src, alt, className = "" }) => { return ( <LazyLoadImage effect="opacity" @@ -10,4 +10,10 @@ export default function Image({ src, alt, className = "" }) { className={className} /> ); -}
\ No newline at end of file +} + +Image.defaultProps = { + test: false +} + +export default Image
\ No newline at end of file |
