entitlements FE
This commit is contained in:
1 parent
c43241eb52
commit
e600f293b0
23 files changed
+124
-88
No files matched your search
@@ -2,7 +2,7 @@ import { BasePage } from "@/components/design-elements";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import Stack from "@mui/material/Stack";
|
||||
import { Table } from "@/components/design-elements";
|
||||
import { HeaderCreate } from "@/components/teams/HeaderCreate";
|
||||
import { HeaderCreate } from "@/components/common";
|
||||
import type { Header } from "@/components/design-elements/Table";
|
||||
|
||||
import { useNavigate } from "react-router";
|
||||
@@ -77,6 +77,8 @@ const TeamDetailsPage = () => {
|
||||
label="Add new team member"
|
||||
path={`/teams/${id}/member/create`}
|
||||
isLoading={false}
|
||||
entitlement={null}
|
||||
entitlementCount={teamMembers?.length || 0}
|
||||
/>
|
||||
<Typography variant="h2" marginTop={theme.spacing(4)}>
|
||||
Team Members
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { BasePage, InfoBox } from "@/components/design-elements";
|
||||
import { Table } from "@/components/design-elements";
|
||||
import { HeaderCreate } from "@/components/teams/HeaderCreate";
|
||||
import { HeaderCreate } from "@/components/common";
|
||||
import { ActionsMenu } from "@/components/actions-menu";
|
||||
import { Dialog } from "@/components/inputs";
|
||||
|
||||
@@ -93,6 +93,8 @@ const TeamsPage = () => {
|
||||
label="Create new team"
|
||||
isLoading={loading}
|
||||
path="/teams/create"
|
||||
entitlement="teamsMax"
|
||||
entitlementCount={teams.length}
|
||||
/>
|
||||
<Table
|
||||
headers={headers}
|
||||
|
||||
Reference in new issue
Block a user