Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
JefQuidousse2 committed Oct 9, 2024
1 parent 09a1deb commit 376456a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/app/find-the-expert/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import type { Metadata } from "next";
import type { Session } from "next-auth";

import { Suspense, use, useEffect } from "react";
import { Suspense} from "react";
import { ShowRolesWrapper } from "~/app/result/[role]/page";
import ButtonSkeleton from "~/components/loading/button-loader";
import { Login } from "~/components/login";
import ShowDataTable from "~/components/show-data-table";
import ShowTechSearchWrapper from "~/components/ui/search-expert";
import { getServerAuthSession } from "~/server/auth";
import { logUsageMetric } from "~/server/log";
import {
Expand Down
5 changes: 1 addition & 4 deletions src/components/ui/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import * as React from "react"

import { cn } from "~/lib/utils"

export interface InputProps
extends React.InputHTMLAttributes<HTMLInputElement> {}

const Input = React.forwardRef<HTMLInputElement, InputProps>(
const Input = React.forwardRef<HTMLInputElement, React.InputHTMLAttributes<HTMLInputElement>>(
({ className, type, ...props }, ref) => {
return (
<input
Expand Down
4 changes: 2 additions & 2 deletions src/components/ui/search-expert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const formSchema = z.object({
const ShowTechSearchWrapper = ({ roles } : { roles: Section[]}) => {
const path = usePathname();
const searchParams = useSearchParams();
let defaultRole = searchParams.get("role");
let defaultTech = searchParams.get("tech");
const defaultRole = searchParams.get("role");
const defaultTech = searchParams.get("tech");
const route = useRouter();

const form = useForm<z.infer<typeof formSchema>>({
Expand Down
1 change: 0 additions & 1 deletion src/utils/role-utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Role, Section } from "~/models/types";
import { slugify } from "./slugify";
import { db } from "~/server/db";

export function generateRolesWithHref(
Expand Down

0 comments on commit 376456a

Please sign in to comment.