From 1bf1d39e67b66a818917948189cc6bb1bef7c260 Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 20 Feb 2023 11:37:56 +0100 Subject: [PATCH] chore: minor update --- src/app/page.tsx | 6 ++++-- src/components/ui/file-input.tsx | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 8152420..e77557d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,11 +1,13 @@ +"use client" + +import { FC } from "react" import { Button, buttonVariants } from "@/ui/button" import { FileInput } from "@/ui/file-input" -import { FC } from "react" import { Tooltip, TooltipContent, - TooltipTrigger + TooltipTrigger, } from "@/components/ui/tooltip" export const metadata = { diff --git a/src/components/ui/file-input.tsx b/src/components/ui/file-input.tsx index fbed913..eec69e2 100644 --- a/src/components/ui/file-input.tsx +++ b/src/components/ui/file-input.tsx @@ -1,16 +1,15 @@ "use client" +import { useS3Upload } from "@/src/hooks/use-s3-upload" +import { useToast } from "@/src/hooks/use-toast" +import ImageUpload from "@/ui/image-upload" import { forwardRef, useReducer, useState, type ChangeEvent, - type DragEvent, + type DragEvent } from "react" -import { ALLOWED_FILE_TYPES } from "@/src/config/s3" -import { useS3Upload } from "@/src/hooks/use-s3-upload" -import { useToast } from "@/src/hooks/use-toast" -import ImageUpload from "@/ui/image-upload" import { MAX_FILE_SIZE } from "@/config/image" import { cn, validateFileType } from "@/lib/utils" @@ -298,3 +297,4 @@ const FileInput = forwardRef( FileInput.displayName = "FileInput" export { FileInput } +