diff --git a/apps/web/src/components/etc/NoChannel/NoChannel.tsx b/apps/web/src/components/etc/NoChannel/NoChannel.tsx index 283cb6ae4..4786f1ae5 100644 --- a/apps/web/src/components/etc/NoChannel/NoChannel.tsx +++ b/apps/web/src/components/etc/NoChannel/NoChannel.tsx @@ -60,7 +60,7 @@ const NoChannel: React.FC = ({ projectId }) => {
-

{t('text.no-channel')}.

+

{t('text.no-channel')}

0} placement="bottom"> diff --git a/apps/web/src/components/templates/CreateSectionTemplate/CreateSectionTemplate.tsx b/apps/web/src/components/templates/CreateSectionTemplate/CreateSectionTemplate.tsx index e4665ec82..0df4ce4c6 100644 --- a/apps/web/src/components/templates/CreateSectionTemplate/CreateSectionTemplate.tsx +++ b/apps/web/src/components/templates/CreateSectionTemplate/CreateSectionTemplate.tsx @@ -31,12 +31,12 @@ const CreateSectionTemplate: React.FC = ({ return (
-
+
setOpen((prev) => !prev)} + >

{title}

-
), + size: 300, }), columnHelper.display({ header: 'Created', cell: () => (

{dayjs().format(DATE_TIME_FORMAT)}

), - size: 100, + size: 150, }), columnHelper.display({ header: 'Status', @@ -72,7 +73,7 @@ const getColumns = (t: TFunction, onDelete: (index: number) => void) => [ {t('main.setting.api-key-status.active')} ), - size: 50, + size: 150, }), columnHelper.display({ id: 'delete', @@ -85,7 +86,7 @@ const getColumns = (t: TFunction, onDelete: (index: number) => void) => [ ), - size: 50, + size: 100, }), ]; @@ -123,7 +124,7 @@ const InputApiKey: React.FC = () => { } > - +
{table.getFlatHeaders().map((header, i) => ( diff --git a/apps/web/src/containers/create-project/InputIssueTracker.tsx b/apps/web/src/containers/create-project/InputIssueTracker.tsx index c18f51b9c..533db8580 100644 --- a/apps/web/src/containers/create-project/InputIssueTracker.tsx +++ b/apps/web/src/containers/create-project/InputIssueTracker.tsx @@ -65,6 +65,7 @@ const InputIssueTracker: React.FC = () => { path: '/api/projects', queryOptions: { onError(error) { + console.log('error: ', error); if (error.code === ErrorCode.Member.MemberInvalidUser) setOpenMemberError(true); else if (error.code === ErrorCode.Project.ProjectAlreadyExists) @@ -86,12 +87,14 @@ const InputIssueTracker: React.FC = () => { projectInputScheme.parse(input); } catch (error) { if (error instanceof ZodError) { + console.log('error: ', error); error.errors.forEach((err) => { if (err.path[0] === 'members') setOpenMemberError(true); else if (err.path[0] === 'projectInfo') setOpenProjectError(true); else if (err.path[0] === 'roles') setOpenRoleError(true); }); } + return; } mutate({ name: input.projectInfo.name, diff --git a/apps/web/src/contexts/create-project.context.tsx b/apps/web/src/contexts/create-project.context.tsx index f5b5bcf42..8b59b8e88 100644 --- a/apps/web/src/contexts/create-project.context.tsx +++ b/apps/web/src/contexts/create-project.context.tsx @@ -84,9 +84,9 @@ export const projectInputScheme: Zod.ZodType = z.object({ roleId: z.number(), user: z.object({ id: z.number(), - name: z.string(), email: z.string().email(), - department: z.string(), + name: z.string().nullable(), + department: z.string().nullable(), }), }), ), diff --git a/apps/web/src/types/user.type.ts b/apps/web/src/types/user.type.ts index ba216d54e..df2cc121a 100644 --- a/apps/web/src/types/user.type.ts +++ b/apps/web/src/types/user.type.ts @@ -16,6 +16,6 @@ export type UserType = { id: number; email: string; - name: string; + name: string | null; department: string | null; };