-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(next): added new import for nextjs with ssr disabled
- Loading branch information
1 parent
486c9c6
commit 42e956f
Showing
6 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/react-uploader/src/Uploader/Inline/NextFileUploaderInline.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import dynamic from "next/dynamic"; | ||
|
||
export const FileUploaderInline = dynamic( | ||
() => import("./FileUploaderInline").then((mod) => mod.FileUploaderInline), | ||
{ ssr: false }, | ||
); |
6 changes: 6 additions & 0 deletions
6
packages/react-uploader/src/Uploader/Minimal/NextFileUploaderMinimal.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import dynamic from "next/dynamic"; | ||
|
||
export const FileUploaderMinimal = dynamic( | ||
() => import("./FileUploaderMinimal").then((mod) => mod.FileUploaderMinimal), | ||
{ ssr: false }, | ||
); |
6 changes: 6 additions & 0 deletions
6
packages/react-uploader/src/Uploader/Regular/NextFileUploaderRegular.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import dynamic from "next/dynamic"; | ||
|
||
export const FileUploaderRegular = dynamic( | ||
() => import("./FileUploaderRegular").then((mod) => mod.FileUploaderRegular), | ||
{ ssr: false }, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { FileUploaderMinimal } from "./Uploader/Minimal/NextFileUploaderMinimal"; | ||
export { FileUploaderRegular } from "./Uploader/Regular/NextFileUploaderRegular"; | ||
export { FileUploaderInline } from "./Uploader/Inline/NextFileUploaderInline"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters