summaryrefslogtreecommitdiff
path: root/src/core/components/elements/Badge
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-04-08 10:12:31 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-04-08 10:12:31 +0700
commit0ca62faf89775496320025c170c942b2cb3e1a20 (patch)
tree4107119c58e82aedf3478c165741824ff9cd08c1 /src/core/components/elements/Badge
parente7383ff9601e47953c732fccf093e19993ec37cd (diff)
update theme color
Diffstat (limited to 'src/core/components/elements/Badge')
-rw-r--r--src/core/components/elements/Badge/Badge.jsx29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/core/components/elements/Badge/Badge.jsx b/src/core/components/elements/Badge/Badge.jsx
deleted file mode 100644
index e50cdc78..00000000
--- a/src/core/components/elements/Badge/Badge.jsx
+++ /dev/null
@@ -1,29 +0,0 @@
-const Badge = ({ children, type, ...props }) => {
- return (
- <div
- {...props}
- className={`${badgeStyle(type)} ${props?.className}`}
- >
- {children}
- </div>
- )
-}
-
-Badge.defaultProps = {
- className: ''
-}
-
-const badgeStyle = (type) => {
- let className = ['rounded px-1 text-[11px]']
- switch (type) {
- case 'solid-red':
- className.push('bg-red_r-11 text-white')
- break
- case 'light':
- className.push('bg-gray_r-4 text-gray_r-11')
- break
- }
- return className.join(' ')
-}
-
-export default Badge