refactor: minor ui improvements to import steps

This commit is contained in:
liyasthomas
2021-12-29 06:58:58 +05:30
committed by Andrew Bastin
parent d5866fbb3b
commit fac82200d1
5 changed files with 76 additions and 129 deletions

View File

@@ -11,7 +11,7 @@ export default defineImporter({
step({
stepName: "FILE_OR_URL_IMPORT",
metadata: {
acceptedFileTypes: ["application/json"],
acceptedFileTypes: "application/json",
},
}),
] as const,

View File

@@ -6,7 +6,7 @@ export type StepDefinition = {
FILE_OR_URL_IMPORT: {
returnType: string
metadata: {
acceptedFileTypes: string[]
acceptedFileTypes: string
}
} // String content of the file/url
TARGET_MY_COLLECTION: {