refactor: improve import order and code formatting

- Reordered and grouped imports consistently in backend and frontend files for better readability.
- Applied indentation and formatting fixes across frontend components, services, and backend modules.
- Adjusted multiline method calls and type definitions for improved clarity.
This commit is contained in:
Mathis HERRIOT
2026-01-29 14:44:34 +01:00
parent 27f8c7148a
commit 9db3067721
12 changed files with 60 additions and 58 deletions

View File

@@ -15,7 +15,7 @@ import {
} from "@/components/ui/dropdown-menu";
import { Textarea } from "@/components/ui/textarea";
import { useAuth } from "@/providers/auth-provider";
import { CommentService, type Comment } from "@/services/comment.service";
import { type Comment, CommentService } from "@/services/comment.service";
interface CommentSectionProps {
contentId: string;
@@ -88,7 +88,11 @@ export function CommentSection({ contentId }: CommentSectionProps) {
className="min-h-[80px] resize-none"
/>
<div className="flex justify-end">
<Button type="submit" size="sm" disabled={!newComment.trim() || isSubmitting}>
<Button
type="submit"
size="sm"
disabled={!newComment.trim() || isSubmitting}
>
{isSubmitting ? "Envoi..." : "Publier"}
<Send className="ml-2 h-4 w-4" />
</Button>
@@ -130,7 +134,9 @@ export function CommentSection({ contentId }: CommentSectionProps) {
})}
</span>
</div>
{(user?.uuid === comment.user.uuid || user?.role === "admin" || user?.role === "moderator") && (
{(user?.uuid === comment.user.uuid ||
user?.role === "admin" ||
user?.role === "moderator") && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="icon" className="h-8 w-8">