Fix: Position of the "Add" button (#6110)

Fixes https://github.com/calcom/cal.com/issues/6104
This commit is contained in:
Nafees Nazik authored and GitHub committed 2022-12-19 12:53:46 -05:00
1 parent 795574ef88
commit 533e208643
2 files changed
+20 -15

No files matched your search

@@ -46,7 +46,25 @@ const MembersView = () => {
return (
<>
<Meta title={t("team_members")} description={t("members_team_description")} />
<Meta
title={t("team_members")}
description={t("members_team_description")}
CTA={
isAdmin ? (
<Button
type="button"
color="primary"
StartIcon={Icon.FiPlus}
className="ml-auto"
onClick={() => setShowMemberInvitationModal(true)}
data-testid="new-member-button">
{t("add")}
</Button>
) : (
<></>
)
}
/>
{!isLoading && (
<>
<div>
@@ -68,19 +86,6 @@ const MembersView = () => {
)}
</>
)}
{isAdmin && (
<div className="relative mb-5 flex w-full items-center ">
<Button
type="button"
color="primary"
StartIcon={Icon.FiPlus}
className="ml-auto"
onClick={() => setShowMemberInvitationModal(true)}
data-testid="new-member-button">
{t("add")}
</Button>
</div>
)}
<div>
<ul className="divide-y divide-gray-200 rounded-md border ">
{team?.members.map((member) => {