Skip to content

Commit

Permalink
chore: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed Jul 28, 2024
1 parent 83b84a5 commit 05c238c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
8 changes: 1 addition & 7 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ export const metadata: Metadata = {
template: `%s - ${siteConfig.name}`,
},
description: siteConfig.description,
keywords: [
"nextjs",
"react",
"react server components",
"importer",
"csv-importer",
],
keywords: ["nextjs", "react", "importer", "csv-importer"],
authors: [
{
name: "sadmann7",
Expand Down
2 changes: 1 addition & 1 deletion src/components/file-uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ interface FileUploaderProps extends React.HTMLAttributes<HTMLDivElement> {
* Maximum number of files for the uploader.
* @type number | undefined
* @default 1
* @example maxFileCount={5}
* @example maxFileCount={4}
*/
maxFileCount?: DropzoneProps["maxFiles"]

Expand Down
7 changes: 5 additions & 2 deletions src/config/site.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { absoluteUrl } from "@/lib/utils"
import { env } from "@/env"

export type SiteConfig = typeof siteConfig

export const siteConfig = {
name: "CSV Importer",
description:
"CSV importer built with shadcn-ui, react-dropzone, and papaparse.",
url: absoluteUrl(""),
url:
env.NODE_ENV === "development"
? "http://localhost:3000"
: "https://importer.sadmn.com",
links: { github: "https://github.com/sadmann7/csv-importer" },
}
2 changes: 1 addition & 1 deletion src/hooks/use-upload-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ export function useUploadFile(
}

return {
onUpload,
uploadedFiles,
progresses,
onUpload,
isUploading,
}
}

0 comments on commit 05c238c

Please sign in to comment.