Skip to content

Commit

Permalink
Hide expenses tab (#1737)
Browse files Browse the repository at this point in the history
* hide expenses tab

* comment out the svg

---------

Co-authored-by: “Apoorv <“tiwari.apoorv1316@gmail.com”>
  • Loading branch information
apoorv1316 and “Apoorv authored Mar 20, 2024
1 parent 70a7528 commit 35cdea6
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions app/javascript/src/components/Navbar/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
PaymentsIcon,
SettingIcon,
CalendarIcon,
ExpenseIconSVG,
// ExpenseIconSVG
} from "miruIcons";
import { NavLink } from "react-router-dom";

Expand Down Expand Up @@ -66,12 +66,12 @@ const navOptions = [
path: Paths.Leave_Management,
allowedRoles: ["admin", "owner", "employee"],
},
{
logo: <img className="mr-0 h-5 w-5 md:mr-4" src={ExpenseIconSVG} />,
label: "Expenses",
path: Paths.EXPENSES,
allowedRoles: ["admin", "owner", "book_keeper"],
},
// {
// logo: <img className="mr-0 h-5 w-5 md:mr-4" src={ExpenseIconSVG} />,
// label: "Expenses",
// path: Paths.EXPENSES,
// allowedRoles: ["admin", "owner", "book_keeper"],
// },
];

const navAdminMobileOptions = [
Expand Down Expand Up @@ -110,12 +110,12 @@ const navAdminMobileOptions = [
label: "Payments",
path: Paths.PAYMENTS,
},
{
logo: <PaymentsIcon className="mr-0 md:mr-4" size={26} />,
label: "Expenses",
dataCy: "expenses-tab",
path: Paths.EXPENSES,
},
// {
// logo: <PaymentsIcon className="mr-0 md:mr-4" size={26} />,
// label: "Expenses",
// dataCy: "expenses-tab",
// path: Paths.EXPENSES,
// },
];

const navClientOptions = [
Expand All @@ -131,12 +131,12 @@ const navClientOptions = [
path: "/settings/profile",
allowedRoles: ["admin", "owner", "book_keeper", "client"],
},
{
logo: <PaymentsIcon className="mr-0 md:mr-4" size={26} />,
label: "Expenses",
dataCy: "expenses-tab",
path: Paths.EXPENSES,
},
// {
// logo: <PaymentsIcon className="mr-0 md:mr-4" size={26} />,
// label: "Expenses",
// dataCy: "expenses-tab",
// path: Paths.EXPENSES,
// },
];

const activeClassName =
Expand Down

0 comments on commit 35cdea6

Please sign in to comment.