Skip to content

Commit e723390

Browse files
authored
chore: remove manage access button from settings (#7322)
remove button
1 parent b45e8da commit e723390

7 files changed

Lines changed: 0 additions & 69 deletions

File tree

app/(gcforms)/[locale]/(form administration)/form-builder/[id]/components/dialogs/ManageFormAccessDialog/ManageFormAccessButton.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

app/(gcforms)/[locale]/(form administration)/form-builder/[id]/components/dialogs/ManageFormAccessDialog/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ export const ManageFormAccessDialogContainer = ({ formId }: { formId: string })
1010
</ManageFormAccessDialogProvider>
1111
);
1212
};
13-
14-
export { ManageFormAccessButton } from "./ManageFormAccessButton";

app/(gcforms)/[locale]/(form administration)/form-builder/[id]/responses/[[...statusFilter]]/components/NavigationTabs.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,13 @@ import { DeleteIcon, FolderIcon, InboxIcon } from "@serverComponents/icons";
44
import { TabNavLink } from "@clientComponents/globals/TabNavLink";
55
import { usePathname } from "next/navigation";
66
import { useTranslation } from "@i18n/client";
7-
import { ManageFormAccessButton } from "../../../components/dialogs/ManageFormAccessDialog/ManageFormAccessButton";
8-
import { useTemplateStore } from "@lib/store/useTemplateStore";
97

108
export const NavigationTabs = ({ formId }: { formId: string }) => {
119
const {
1210
t,
1311
i18n: { language: locale },
1412
} = useTranslation("form-builder-responses");
1513
const pathname = usePathname();
16-
const { isPublished } = useTemplateStore((s) => {
17-
return {
18-
isPublished: s.isPublished,
19-
};
20-
});
2114

2215
return (
2316
<nav className="relative mb-10 flex border-b border-black" aria-label={t("responses.navLabel")}>
@@ -51,12 +44,6 @@ export const NavigationTabs = ({ formId }: { formId: string }) => {
5144
<DeleteIcon className="inline-block size-7" /> {t("responses.status.deleted")}
5245
</span>
5346
</TabNavLink>
54-
55-
{isPublished && (
56-
<div className="absolute right-5 bottom-4">
57-
<ManageFormAccessButton />
58-
</div>
59-
)}
6047
</nav>
6148
);
6249
};

app/(gcforms)/[locale]/(form administration)/form-builder/[id]/responses/[[...statusFilter]]/components/ResponsesContainer.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { DeliveryOptionEmail } from "./DeliveryOptionEmail";
66
import { NavigationTabs } from "./NavigationTabs";
77
import { ResponsesFooter } from "./ResponsesFooter";
88
import { Responses } from "./Responses";
9-
10-
import { ManageFormAccessButton } from "../../../components/dialogs/ManageFormAccessDialog/ManageFormAccessButton";
119
import { StatusFilter } from "../types";
1210
import { useTranslation } from "@i18n/client";
1311
import { ResponseBetaLink } from "./ResponseBetaLink";
@@ -47,13 +45,6 @@ export const ResponsesContainer = ({
4745
<h1>{t("apiDashboard.title")}</h1>
4846
<ResponseBetaLink formId={id} className="mb-8 block" />
4947
</div>
50-
{isPublished && (
51-
<div>
52-
<div className="mr-5">
53-
<ManageFormAccessButton />
54-
</div>
55-
</div>
56-
)}
5748
</div>
5849

5950
<Responses

i18n/translations/en/manage-form-access.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"invited": "Invited",
2323
"inviteToForm": "Invite to manage responses",
2424
"loading": "Loading...",
25-
"manageFormAccess": "Manage access",
2625
"manageOwnership": "Manage ownership",
2726
"mustBeAGovernmentAddress": "Add colleagues using each of their email addresses. Do not add a shared address, as per our <a href='/en/terms-of-use' target='_blank'>terms of use</a>.",
2827
"next": "Continue",

i18n/translations/fr/manage-form-access.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"invited": "Invité",
2323
"inviteToForm": "Inviter à gérer les réponses",
2424
"loading": "Téléchargement...",
25-
"manageFormAccess": "Gérer l'accès",
2625
"manageOwnership": "Gérer les propriétaires",
2726
"mustBeAGovernmentAddress": "Ajoutez vos collègues en utilisant leurs adresses courriel individuelles, et non une adresse partagée, conformément à nos <a href='/fr/terms-of-use' target='_blank'>conditions d'utilisation</a>.",
2827
"next": "Continuer",

tests/browser/form-builder/manage-form-access-dialog/ManageFormAccessButton.browser.test.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)