summaryrefslogtreecommitdiff
path: root/src/components/elements
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/elements')
-rw-r--r--src/components/elements/ConfirmAlert.js4
-rw-r--r--src/components/elements/Image.js10
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