From 7e8e4c02def654cd53620bc3f72e66eb5776ed83 Mon Sep 17 00:00:00 2001 From: d-ivashchuk Date: Tue, 9 Apr 2024 10:09:48 +0200 Subject: [PATCH] fix errors --- .../sentry-trpc-example-error-page/page.tsx | 2 +- src/components/ui/progress.tsx | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/(error-examples)/sentry-trpc-example-error-page/page.tsx b/src/app/(error-examples)/sentry-trpc-example-error-page/page.tsx index e11bca6..758d6f9 100644 --- a/src/app/(error-examples)/sentry-trpc-example-error-page/page.tsx +++ b/src/app/(error-examples)/sentry-trpc-example-error-page/page.tsx @@ -4,7 +4,7 @@ import React from "react"; import { api } from "~/trpc/react"; const TrpcErrorPage = () => { - const hello = api.post.hello.useQuery({ + const hello = api.example.hello.useQuery({ text: "world", }); if (hello.isLoading) return
Loading...
; diff --git a/src/components/ui/progress.tsx b/src/components/ui/progress.tsx index 1d2a151..5dc31ea 100644 --- a/src/components/ui/progress.tsx +++ b/src/components/ui/progress.tsx @@ -1,9 +1,9 @@ -"use client" +"use client"; -import * as React from "react" -import * as ProgressPrimitive from "@radix-ui/react-progress" +import * as React from "react"; +import * as ProgressPrimitive from "@radix-ui/react-progress"; -import { cn } from "~/lib/utils" +import { cn } from "~/lib/utils"; const Progress = React.forwardRef< React.ElementRef, @@ -13,16 +13,16 @@ const Progress = React.forwardRef< ref={ref} className={cn( "relative h-4 w-full overflow-hidden rounded-full bg-secondary", - className + className, )} {...props} > -)) -Progress.displayName = ProgressPrimitive.Root.displayName +)); +Progress.displayName = ProgressPrimitive.Root.displayName; -export { Progress } +export { Progress };