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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user