add buttons
This commit is contained in:
1 parent
9ca79ea793
commit
3fc4160b88
4 files changed
+99
No files matched your search
@@ -13,11 +13,13 @@ import { useIsAdmin, useIsSuperAdmin } from "@/Hooks/useIsAdmin";
|
||||
interface HeaderTeamControlsProps {
|
||||
filter: UserRole | "";
|
||||
onFilterChange: (value: UserRole | "") => void;
|
||||
onInviteClick?: () => void;
|
||||
}
|
||||
|
||||
export const HeaderTeamControls = ({
|
||||
filter,
|
||||
onFilterChange,
|
||||
onInviteClick,
|
||||
}: HeaderTeamControlsProps) => {
|
||||
const theme = useTheme();
|
||||
const { t } = useTranslation();
|
||||
@@ -56,6 +58,7 @@ export const HeaderTeamControls = ({
|
||||
variant="contained"
|
||||
color="primary"
|
||||
startIcon={<Icon icon={Mail} />}
|
||||
onClick={onInviteClick}
|
||||
>
|
||||
{t("pages.account.team.inviteMember")}
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user