From e33a330786ffbfcd774de00dc697c6dff47faf27 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 20 Feb 2023 14:20:44 +0700
Subject: fix

---
 src/core/components/elements/Alert/Alert.jsx | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 src/core/components/elements/Alert/Alert.jsx

(limited to 'src/core/components/elements/Alert/Alert.jsx')

diff --git a/src/core/components/elements/Alert/Alert.jsx b/src/core/components/elements/Alert/Alert.jsx
new file mode 100644
index 00000000..3f5584b9
--- /dev/null
+++ b/src/core/components/elements/Alert/Alert.jsx
@@ -0,0 +1,21 @@
+const Alert = ({ children, className, type }) => {
+  let typeClass = ''
+  switch (type) {
+    case 'info':
+      typeClass = 'bg-blue-100 text-blue-900 border-blue-400'
+      break
+    case 'success':
+      typeClass = 'bg-green-100 text-green-900 border-green-400'
+      break
+    case 'warning':
+      typeClass = 'bg-yellow-100 text-yellow-900 border-yellow-400'
+      break
+  }
+  return (
+    <div className={`rounded-md w-full text-medium p-3 border ${typeClass} ${className}`}>
+      {children}
+    </div>
+  )
+}
+
+export default Alert
\ No newline at end of file
-- 
cgit v1.2.3


From f66b12fd1d0b83af0d7230d7b1565fbe00afbe3c Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Wed, 22 Feb 2023 11:03:34 +0700
Subject: prettier

---
 src/core/components/elements/Alert/Alert.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/core/components/elements/Alert/Alert.jsx')

diff --git a/src/core/components/elements/Alert/Alert.jsx b/src/core/components/elements/Alert/Alert.jsx
index 3f5584b9..695be8a3 100644
--- a/src/core/components/elements/Alert/Alert.jsx
+++ b/src/core/components/elements/Alert/Alert.jsx
@@ -18,4 +18,4 @@ const Alert = ({ children, className, type }) => {
   )
 }
 
-export default Alert
\ No newline at end of file
+export default Alert
-- 
cgit v1.2.3

