From 7aa9e1cd6a7b1aead28ab5f228b5d096f7b5308b Mon Sep 17 00:00:00 2001 From: Brett Onions Date: Tue, 10 Sep 2024 15:53:15 +0200 Subject: [PATCH] chore: update page headings in client role form --- .../src/pages/client-role-form/client-role-form.tsx | 4 ++-- packages/clients-app/src/types/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/client-roles-app/src/pages/client-role-form/client-role-form.tsx b/packages/client-roles-app/src/pages/client-role-form/client-role-form.tsx index 67f8bbf5..fa00c223 100644 --- a/packages/client-roles-app/src/pages/client-role-form/client-role-form.tsx +++ b/packages/client-roles-app/src/pages/client-role-form/client-role-form.tsx @@ -45,12 +45,12 @@ const defaultClientRoleState: ClientRole = { const pageHeadingTypography = { addClientUserRole: { - heading: 'Add User Role', + heading: 'Add Client Role', caption: 'Control client systems and their access roles. Add client to enable their request routing and group them by roles for streamlined channel access management' }, editClientUserRole: { - heading: 'Edit User Role', + heading: 'Edit Client Role', caption: 'Control client systems and their access roles. Add clients to enable their request routing and group them by roles for streamlined channel access management.' } diff --git a/packages/clients-app/src/types/index.ts b/packages/clients-app/src/types/index.ts index 017faed9..9d4aa3c9 100644 --- a/packages/clients-app/src/types/index.ts +++ b/packages/clients-app/src/types/index.ts @@ -7,7 +7,7 @@ export const ClientSchema = z.object({ message: 'Client ID must be above 1 character', }), name: z.string().min(1).max(255), - roles: z.array(z.string()).min(1), + roles: z.array(z.string()).optional(), organization: z.string().optional(), softwareName: z.string().optional(), description: z.string().optional(),