Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
yccodr committed Nov 5, 2024
1 parent bff83f8 commit e2a693f
Show file tree
Hide file tree
Showing 4 changed files with 587 additions and 590 deletions.
53 changes: 23 additions & 30 deletions frontend/src/pages/ProfileCreate/ProfileFormBasic.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,28 @@
import { useProfileForm } from "../../hooks/profile-form";
import {
Card,
Table,
TableBody,
TableCell,
TableRow,
TextField,
} from "@mui/material";
import { Card, Table, TableBody, TableCell, TableRow, TextField } from "@mui/material";

export default function ProfileFormBasic() {
const { register, validationErrors } = useProfileForm();
const { register, validationErrors } = useProfileForm();

return (
<Card variant="outlined">
<Table>
<TableBody id="Profile Name">
<TableRow>
<TableCell>
<TextField
{...register("profileName", { required: true })}
error={validationErrors.profileName !== undefined}
helperText={validationErrors.profileName?.message}
label="Profile Name"
variant="outlined"
required
fullWidth
/>
</TableCell>
</TableRow>
</TableBody>
</Table>
</Card>
);
return (
<Card variant="outlined">
<Table>
<TableBody id="Profile Name">
<TableRow>
<TableCell>
<TextField
{...register("profileName", { required: true })}
error={validationErrors.profileName !== undefined}
helperText={validationErrors.profileName?.message}
label="Profile Name"
variant="outlined"
required
fullWidth
/>
</TableCell>
</TableRow>
</TableBody>
</Table>
</Card>
);
}
Loading

0 comments on commit e2a693f

Please sign in to comment.