Skip to content

Commit

Permalink
[CP-3188] I want to open the category of ebooks files and see the lis…
Browse files Browse the repository at this point in the history
…t of available (#2259)
  • Loading branch information
dkarski authored Jan 8, 2025
1 parent 542a6ea commit d61885e
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,33 @@ interface FileListConfig {
id: string
name: string
entitiesType: string
fileListEmptyStateDescriptionText: string
}

const CONFIG_MAP: Record<string, Omit<FileListConfig, "id">> = {
audioFiles: {
name: "Music",
entitiesType: "audioFiles",
fileListEmptyStateDescriptionText:
"Add music files from your computer and they’ll transfer to your device automatically.",
},
imageFiles: {
name: "Photos",
entitiesType: "imageFiles",
fileListEmptyStateDescriptionText:
"Add image files from your computer and they’ll transfer to your device automatically.",
},
ebookFiles: {
name: "E-books",
entitiesType: "ebookFiles",
fileListEmptyStateDescriptionText:
"Add E-book or PDF files from your computer and they’ll transfer to your device automatically.",
},
applicationFiles: {
name: "Apps",
entitiesType: "applicationFiles",
fileListEmptyStateDescriptionText:
"Add android app (.apk) files and install them from here. As Kompakt is a minimalist E-ink device some apps may not work correctly. ",
},
}

Expand All @@ -42,6 +51,7 @@ const generateFileList = ({
id,
name,
entitiesType,
fileListEmptyStateDescriptionText,
}: FileListConfig): Subview => {
return {
[`${id}fileListContainer`]: {
Expand Down Expand Up @@ -338,7 +348,7 @@ const generateFileList = ({
width: "388px",
},
config: {
text: "Add music files from your computer and they’ll transfer\nto your device automatically.",
text: fileListEmptyStateDescriptionText,
textAlign: "center",
},
},
Expand Down

0 comments on commit d61885e

Please sign in to comment.