Skip to content

Commit

Permalink
style(lint): 💄 lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnaveen committed Sep 27, 2024
1 parent 12db48e commit bccbc3a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
3 changes: 1 addition & 2 deletions app/[slug]/[board]/(main)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ import { BoardView } from "@/components/boards/view";
import { CreatePost } from "@/components/posts/create";
import { Input } from "@/components/ui/input";
import { BoardOptions } from "@/components/boards/options";
import { Board } from "@/types/board";

import PrivateBoard from "../../private";

import NotFound from "./not-found";
import { Board } from "@/types/board";
import { Project } from "@/types/project";

export default async function BoardLayout({
children,
Expand Down
4 changes: 2 additions & 2 deletions app/[slug]/[board]/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { findBoardBySlug } from "@/helpers/boards/findBoardBySlug";
import { authOptions } from "@/lib/auth";
import { PostsList } from "@/components/posts/list";
import { checkUserAccess } from "@/helpers/common/hasAccess";

import NotFound from "./not-found";
import { Board } from "@/types/board";
import { Project } from "@/types/project";

import NotFound from "./not-found";

export async function generateMetadata({
params,
}: {
Expand Down
2 changes: 0 additions & 2 deletions app/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { getServerSession } from "next-auth";
import { Suspense } from "react";
import { Project } from "@prisma/client";

import { findProjectBySlug } from "@/helpers/projects/findProjectBySlug";
import { BoardsList } from "@/components/boards/list";
import { authOptions } from "@/lib/auth";
import { CreateBoard } from "@/components/boards/create";
import { ProjectOptions } from "@/components/projects/options";
import Spinner from "@/components/common/spinner";
import { checkUserAccess } from "@/helpers/common/hasAccess";
import { BoardView } from "@/components/boards/view";
import { Recent } from "@/components/common/recent";
Expand Down
1 change: 0 additions & 1 deletion components/common/roadmap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Link from "next/link";
import { db } from "@/lib/db";
import { ScrollArea } from "@/components/ui/scroll-area";
import { Card, CardDescription, CardTitle } from "@/components/ui/card";

import { UpvoteButton } from "@/components/posts/upvote";

export const Roadmap = async ({ projectId }: { projectId: string }) => {
Expand Down
2 changes: 1 addition & 1 deletion components/posts/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import {
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Badge } from "@/components/ui/badge";
import { formatPostStatus } from "@/helpers/common/formatPostStatus";
import { Upvote } from "@/types/upvote";

import { UpvoteButton } from "./upvote";
import Options from "./options";
import { Upvote } from "@/types/upvote";

interface PostsCardProps {
post: Post & {
Expand Down
6 changes: 3 additions & 3 deletions components/replies/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { z } from "zod";
import { useMutation, useQueryClient } from "@tanstack/react-query";
import { toast } from "sonner";
import { Loader2 } from "lucide-react";
import { useSession } from "next-auth/react";
import { useRouter } from "next/navigation";

import {
Form,
Expand All @@ -16,8 +18,6 @@ import {
} from "../ui/form";
import { Button } from "../ui/button";
import { Textarea } from "../ui/textarea";
import { useSession } from "next-auth/react";
import { useRouter } from "next/navigation";

const replySchema = z.object({
body: z.string().min(1, { message: "Reply is required" }),
Expand Down Expand Up @@ -101,8 +101,8 @@ export const Reply = ({ postId, parentId, boardId, projectId }: ReplyProps) => {
<Textarea
{...field}
className="w-full focus:!ring-0 focus:!ring-offset-0"
placeholder="Write a reply..."
disabled={session.status === "unauthenticated"}
placeholder="Write a reply..."
/>
</FormControl>
<FormMessage />
Expand Down

0 comments on commit bccbc3a

Please sign in to comment.