summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-05-31 08:55:43 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-05-31 08:55:43 +0700
commit0d28dc8ff5fb8c5399e356ed6ecae4fce2019ca6 (patch)
tree51c25a7c508b30e974551c69680a10a76470c147 /src/core
parent62d2edfa5ae62cd8faa2d0322ddfd5dfa6ad2d2e (diff)
<hafid> fix repeat-order
Diffstat (limited to 'src/core')
-rw-r--r--src/core/components/elements/Navbar/NavbarDesktop.jsx2
-rw-r--r--src/core/components/elements/Navbar/NavbarUserDropdown.jsx1
-rw-r--r--src/core/components/layouts/BasicLayout.jsx2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/core/components/elements/Navbar/NavbarDesktop.jsx b/src/core/components/elements/Navbar/NavbarDesktop.jsx
index 03d7fa0c..db4fcbb8 100644
--- a/src/core/components/elements/Navbar/NavbarDesktop.jsx
+++ b/src/core/components/elements/Navbar/NavbarDesktop.jsx
@@ -51,7 +51,7 @@ const NavbarDesktop = () => {
const { transactions } = useTransactions({ query });
const data = transactions?.data?.saleOrders.filter(
- (transaction) => transaction.status === 'draft'
+ (transaction) => transaction.status === 'waiting'
);
const [showPopup, setShowPopup] = useState(false);
diff --git a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
index b2ad6309..5fe0cfa7 100644
--- a/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
+++ b/src/core/components/elements/Navbar/NavbarUserDropdown.jsx
@@ -16,7 +16,6 @@ const NavbarUserDropdown = () => {
<div className='navbar-user-dropdown-wrapper'>
<div className='navbar-user-dropdown'>
<Link href='/my/profile'>Profil Saya</Link>
- <Link href='/my/quotations'>Daftar Quotation</Link>
<Link href='/my/transactions'>Daftar Transaksi</Link>
<Link href='/my/shipments'>Daftar Pengiriman</Link>
<Link href='/my/invoices'>Invoice & Faktur Pajak</Link>
diff --git a/src/core/components/layouts/BasicLayout.jsx b/src/core/components/layouts/BasicLayout.jsx
index 2998fa63..81f8b41f 100644
--- a/src/core/components/layouts/BasicLayout.jsx
+++ b/src/core/components/layouts/BasicLayout.jsx
@@ -54,6 +54,8 @@ const BasicLayout = ({ children }) => {
useEffect(() => {
const handleMouseOut = (event) => {
+
+ if (!buttonRef.current) return;
const rect = buttonRef.current.getBoundingClientRect();
if (event.clientY <= 0) {
setButtonPosition(rect);