Skip to content

Commit

Permalink
fix a prettier error
Browse files Browse the repository at this point in the history
  • Loading branch information
georgi-s committed May 27, 2024
1 parent dd28350 commit fde7a8c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
1 change: 1 addition & 0 deletions src/components/buttons/edit-survey-option.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"use client";

Check failure on line 1 in src/components/buttons/edit-survey-option.tsx

View workflow job for this annotation

GitHub Actions / Prettier

src/components/buttons/edit-survey-option.tsx#L1

There are issues with this file's formatting, please run Prettier to fix the errors

import React, { useState, useEffect } from "react";
import { readSurvey, updateSurvey } from "@/lib/api/surveyClient";
import {
Expand Down
44 changes: 22 additions & 22 deletions src/components/ui/drawer.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use client"
"use client";

Check failure on line 1 in src/components/ui/drawer.tsx

View workflow job for this annotation

GitHub Actions / Prettier

src/components/ui/drawer.tsx#L1

There are issues with this file's formatting, please run Prettier to fix the errors

import * as React from "react"
import { Drawer as DrawerPrimitive } from "vaul"
import * as React from "react";
import { Drawer as DrawerPrimitive } from "vaul";

import { cn } from "@/lib/utils"
import { cn } from "@/lib/utils";

const Drawer = ({
shouldScaleBackground = true,
Expand All @@ -13,14 +13,14 @@ const Drawer = ({
shouldScaleBackground={shouldScaleBackground}
{...props}
/>
)
Drawer.displayName = "Drawer"
);
Drawer.displayName = "Drawer";

const DrawerTrigger = DrawerPrimitive.Trigger
const DrawerTrigger = DrawerPrimitive.Trigger;

const DrawerPortal = DrawerPrimitive.Portal
const DrawerPortal = DrawerPrimitive.Portal;

const DrawerClose = DrawerPrimitive.Close
const DrawerClose = DrawerPrimitive.Close;

const DrawerOverlay = React.forwardRef<
React.ElementRef<typeof DrawerPrimitive.Overlay>,
Expand All @@ -31,8 +31,8 @@ const DrawerOverlay = React.forwardRef<
className={cn("fixed inset-0 z-50 bg-black/80", className)}
{...props}
/>
))
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName
));
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;

const DrawerContent = React.forwardRef<
React.ElementRef<typeof DrawerPrimitive.Content>,
Expand All @@ -52,8 +52,8 @@ const DrawerContent = React.forwardRef<
{children}
</DrawerPrimitive.Content>
</DrawerPortal>
))
DrawerContent.displayName = "DrawerContent"
));
DrawerContent.displayName = "DrawerContent";

const DrawerHeader = ({
className,
Expand All @@ -63,8 +63,8 @@ const DrawerHeader = ({
className={cn("grid gap-1.5 p-4 text-center sm:text-left", className)}
{...props}
/>
)
DrawerHeader.displayName = "DrawerHeader"
);
DrawerHeader.displayName = "DrawerHeader";

const DrawerFooter = ({
className,
Expand All @@ -74,8 +74,8 @@ const DrawerFooter = ({
className={cn("mt-auto flex flex-col gap-2 p-4", className)}
{...props}
/>
)
DrawerFooter.displayName = "DrawerFooter"
);
DrawerFooter.displayName = "DrawerFooter";

const DrawerTitle = React.forwardRef<
React.ElementRef<typeof DrawerPrimitive.Title>,
Expand All @@ -89,8 +89,8 @@ const DrawerTitle = React.forwardRef<
)}
{...props}
/>
))
DrawerTitle.displayName = DrawerPrimitive.Title.displayName
));
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;

const DrawerDescription = React.forwardRef<
React.ElementRef<typeof DrawerPrimitive.Description>,
Expand All @@ -101,8 +101,8 @@ const DrawerDescription = React.forwardRef<
className={cn("text-sm text-muted-foreground", className)}
{...props}
/>
))
DrawerDescription.displayName = DrawerPrimitive.Description.displayName
));
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;

export {
Drawer,
Expand All @@ -115,4 +115,4 @@ export {
DrawerFooter,
DrawerTitle,
DrawerDescription,
}
};
1 change: 1 addition & 0 deletions src/pages/api/answer/question/[questionId].ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { NextApiRequest, NextApiResponse } from "next";

Check failure on line 1 in src/pages/api/answer/question/[questionId].ts

View workflow job for this annotation

GitHub Actions / Prettier

src/pages/api/answer/question/[questionId].ts#L1

There are issues with this file's formatting, please run Prettier to fix the errors

import prisma from "@/lib/db";

export default async function handler(
Expand Down

0 comments on commit fde7a8c

Please sign in to comment.