From 0ca62faf89775496320025c170c942b2cb3e1a20 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Sat, 8 Apr 2023 10:12:31 +0700 Subject: update theme color --- src/core/components/elements/Badge/Badge.jsx | 29 ---------------------- src/core/components/elements/Link/Link.jsx | 2 +- .../components/elements/Navbar/NavbarDesktop.jsx | 6 ++--- src/core/components/elements/Navbar/Search.jsx | 2 +- 4 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 src/core/components/elements/Badge/Badge.jsx (limited to 'src/core/components/elements') 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 ( -
- {children} -
- ) -} - -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 diff --git a/src/core/components/elements/Link/Link.jsx b/src/core/components/elements/Link/Link.jsx index 05859639..360444a6 100644 --- a/src/core/components/elements/Link/Link.jsx +++ b/src/core/components/elements/Link/Link.jsx @@ -13,7 +13,7 @@ const Link = ({ children, ...props }) => { {children} diff --git a/src/core/components/elements/Navbar/NavbarDesktop.jsx b/src/core/components/elements/Navbar/NavbarDesktop.jsx index c01cb777..0bc9e967 100644 --- a/src/core/components/elements/Navbar/NavbarDesktop.jsx +++ b/src/core/components/elements/Navbar/NavbarDesktop.jsx @@ -22,7 +22,7 @@ const NavbarDesktop = () => { return ( -
+
Tentang Indoteknik.com @@ -129,13 +129,13 @@ const NavbarDesktop = () => { <> Masuk Daftar diff --git a/src/core/components/elements/Navbar/Search.jsx b/src/core/components/elements/Navbar/Search.jsx index 32a8d170..d0627b24 100644 --- a/src/core/components/elements/Navbar/Search.jsx +++ b/src/core/components/elements/Navbar/Search.jsx @@ -73,7 +73,7 @@ const Search = () => { {suggestion.term} -- cgit v1.2.3