Check user auth in api request

This commit is contained in:
Takeshi Kimata
2024-05-25 23:34:38 +09:00
parent 4092b14f3c
commit 3984373025
16 changed files with 149 additions and 64 deletions

View File

@@ -62,7 +62,15 @@ export default function ProjectsTable({ projects, onEditProject, onDeleteProject
case 'id':
return <span>{cellValue}</span>;
case 'isPublic':
return cellValue ? <Chip size="sm">{messages.public}</Chip> : <></>;
return cellValue ? (
<Chip size="sm" variant="bordered">
{messages.public}
</Chip>
) : (
<Chip size="sm" variant="bordered">
{messages.private}
</Chip>
);
case 'name':
const maxLength = 30;
const truncatedDetail = truncateText(project.detail, maxLength);