diff --git a/public/assets/vendor/css/core.css b/public/assets/vendor/css/core.css index 85124986..6e3d5d14 100644 --- a/public/assets/vendor/css/core.css +++ b/public/assets/vendor/css/core.css @@ -18609,6 +18609,9 @@ li:not(:first-child) .dropdown-item, .min-vh-100 { min-height: 100vh !important; } +.page-min-h{ + min-height: 70vh !important; +} .flex-fill { flex: 1 1 auto !important; diff --git a/src/components/Tenanat/Profile.jsx b/src/components/Tenanat/Profile.jsx new file mode 100644 index 00000000..45be1014 --- /dev/null +++ b/src/components/Tenanat/Profile.jsx @@ -0,0 +1,9 @@ +import React from 'react' + +const Profile = () => { + return ( +
profile
+ ) +} + +export default Profile \ No newline at end of file diff --git a/src/components/Tenanat/TenantsList.jsx b/src/components/Tenanat/TenantsList.jsx index ed8bafa8..e6163065 100644 --- a/src/components/Tenanat/TenantsList.jsx +++ b/src/components/Tenanat/TenantsList.jsx @@ -6,9 +6,11 @@ import IconButton from "../common/IconButton"; import Pagination from "../common/Pagination"; import { TenantTableSkeleton } from "./TenanatSkeleton"; import { useTenantContext } from "../../pages/Tenant/TenantPage"; +import { useNavigate } from "react-router-dom"; const TenantsList = ({searchText,setIsRefetching, setRefetchFn}) => { const [currentPage, setCurrentPage] = useState(1); + const navigate = useNavigate() const { data, isLoading, isError, isInitialLoading, error,refetch, isFetching } = useTenants( currentPage, {}, @@ -39,7 +41,7 @@ const TenantsList = ({searchText,setIsRefetching, setRefetchFn}) => { key: "name", label: "Organization", getValue: (t) => ( -
+
navigate(`/tenant/${t.id}`)}> { + + const tabs = [ + { + id: "navs-left-home", + label: "Profile", + icon: "bx bx-user-circle", + iconSize: "bx-sm", + content: , + }, + { + id: "navs-left-org", + label: "Organization", + icon: "bx bxs-business", + iconSize: "bx-sm", // change to bx-xs, bx-md, bx-lg + content: ( + <> +

+ Icing pastry pudding oat cake. Lemon drops cotton candy caramels cake... +

+

+ Tootsie roll fruitcake cookie. Dessert topping pie... +

+ + ), + }, + { + id: "navs-left-profile", + label: "Settings", + icon: "bx bx-cog", + iconSize: "bx-sm", + content: ( + <> +

+ Donut dragée jelly pie halvah. Danish gingerbread bonbon cookie... +

+

+ Jelly-o jelly beans icing pastry cake cake lemon drops... +

+ + ), + }, + { + id: "navs-left-messages", + label: "Messages", + icon: "bx bx-message-rounded", + iconSize: "bx-sm", + content: ( + <> +

+ Oat cake chupa chups dragée donut toffee. Sweet cotton candy jelly beans... +

+

+ Cake chocolate bar cotton candy apple pie tootsie roll... +

+ + ), + }, + { + id: "navs-left-bill", + label: "Bill", + icon: "bx bx-receipt", + iconSize: "bx-sm", + content: ( + <> +

+ Oat cake chupa chups dragée donut toffee. Sweet cotton candy jelly beans... +

+

+ Cake chocolate bar cotton candy apple pie tootsie roll... +

+ + ), + }, + ]; + + return ( +
+ + +
+
    + {tabs.map((tab, index) => ( +
  • + +
  • + ))} +
+ +
+ {tabs.map((tab, index) => ( +
+ {tab.content} +
+ ))} +
+
+
+ ); +}; + +export default TenantDetails; diff --git a/src/pages/Tenant/TenantPage.jsx b/src/pages/Tenant/TenantPage.jsx index 3ead3600..6b7cd04e 100644 --- a/src/pages/Tenant/TenantPage.jsx +++ b/src/pages/Tenant/TenantPage.jsx @@ -65,7 +65,7 @@ const TenantPage = () => { value={searchText} onChange={(e)=>setSearchText(e.target.value)} className="form-control form-control-sm" - placeholder="Search..." + placeholder="Search Tenant" />
diff --git a/src/router/AppRoutes.jsx b/src/router/AppRoutes.jsx index 013933d9..d46f397f 100644 --- a/src/router/AppRoutes.jsx +++ b/src/router/AppRoutes.jsx @@ -41,6 +41,7 @@ import LoginWithOtp from "../pages/authentication/LoginWithOtp"; import TenantPage from "../pages/Tenant/TenantPage"; import CreateTenant from "../pages/Tenant/CreateTenant"; import ExpensePage from "../pages/Expense/ExpensePage"; +import TenantDetails from "../pages/Tenant/TenantDetails"; const router = createBrowserRouter( [ @@ -83,6 +84,7 @@ const router = createBrowserRouter( { path: "/masters", element: }, { path: "/tenants", element: }, { path: "/tenants/new-tenant", element: }, + { path: "/tenant/:tenantId", element: }, { path: "/help/support", element: }, { path: "/help/docs", element: }, { path: "/help/connect", element: },