fix: correct some workflow problems

This commit is contained in:
Riccardo
2024-05-28 07:11:57 +02:00
parent 85d66215a7
commit 8c36c90710
9 changed files with 47 additions and 20 deletions

View File

@@ -55,13 +55,17 @@ export default function ProfilesTableRow({
};
return (
<TableRow key={profile.id}>
<TableCell
align="center"
onClick={handleClick}
onDoubleClick={handleDoubleClick}
sx={{ bgcolor: profile.id === selected ? 'lightblue' : 'inherit' }}
>
<TableRow
sx={{
'& td': {
textAlign: 'center',
bgcolor: profile.id === selected ? 'lightblue' : 'inherit'
}
}}
onClick={handleClick}
key={profile.id}
>
<TableCell onDoubleClick={handleDoubleClick}>
{isEditing ? (
<TextField
value={name}
@@ -73,7 +77,8 @@ export default function ProfilesTableRow({
name
)}
</TableCell>
<TableCell align="center">
<TableCell>{new Date(profile.createdAt).toLocaleString()}</TableCell>
<TableCell>
<Button onClick={handleDelete}>Delete</Button>
</TableCell>
</TableRow>