Client:EmptyScreen Fixed Description and Title
This commit is contained in:
parent
15797bbf6c
commit
fb7e0671c9
@ -75,19 +75,16 @@ export const getDescription = (
|
|||||||
if (isFolder) {
|
if (isFolder) {
|
||||||
return match([parentRoomType, folderType, access])
|
return match([parentRoomType, folderType, access])
|
||||||
.with([P._, FolderType.Done, P._], () =>
|
.with([P._, FolderType.Done, P._], () =>
|
||||||
t("Files:EmptyFormFolderDoneHeaderText"),
|
t("Files:EmptyFormFolderDoneDescriptionText"),
|
||||||
)
|
)
|
||||||
|
|
||||||
.with([P._, FolderType.InProgress, P._], () =>
|
.with([P._, FolderType.InProgress, P._], () =>
|
||||||
t("Files:EmptyFormFolderProgressHeaderText"),
|
t("Files:EmptyFormFolderProgressDescriptionText"),
|
||||||
)
|
)
|
||||||
.with(
|
.with([P._, FolderType.SubFolderDone, P._], () =>
|
||||||
[
|
t("Files:EmptyFormSubFolderDoneDescriptionText"),
|
||||||
P._,
|
)
|
||||||
P.union(FolderType.SubFolderDone, FolderType.SubFolderInProgress),
|
.with([P._, FolderType.SubFolderInProgress, P._], () =>
|
||||||
P._,
|
t("Files:EmptyFormSubFolderProgressDescriptionText"),
|
||||||
],
|
|
||||||
() => t("Files:EmptyFormSubFolderHeaderText"),
|
|
||||||
)
|
)
|
||||||
.with(
|
.with(
|
||||||
[
|
[
|
||||||
@ -130,16 +127,19 @@ export const getTitle = (
|
|||||||
if (isFolder) {
|
if (isFolder) {
|
||||||
return match([parentRoomType, folderType, access])
|
return match([parentRoomType, folderType, access])
|
||||||
.with([P._, FolderType.Done, P._], () =>
|
.with([P._, FolderType.Done, P._], () =>
|
||||||
t("Files:EmptyFormFolderDoneDescriptionText"),
|
t("Files:EmptyFormFolderDoneHeaderText"),
|
||||||
)
|
)
|
||||||
|
|
||||||
.with([P._, FolderType.InProgress, P._], () =>
|
.with([P._, FolderType.InProgress, P._], () =>
|
||||||
t("Files:EmptyFormFolderProgressDescriptionText"),
|
t("Files:EmptyFormFolderProgressHeaderText"),
|
||||||
)
|
)
|
||||||
.with([P._, FolderType.SubFolderDone, P._], () =>
|
.with(
|
||||||
t("Files:EmptyFormSubFolderDoneDescriptionText"),
|
[
|
||||||
)
|
P._,
|
||||||
.with([P._, FolderType.SubFolderInProgress, P._], () =>
|
P.union(FolderType.SubFolderDone, FolderType.SubFolderInProgress),
|
||||||
t("Files:EmptyFormSubFolderProgressDescriptionText"),
|
P._,
|
||||||
|
],
|
||||||
|
() => t("Files:EmptyFormSubFolderHeaderText"),
|
||||||
)
|
)
|
||||||
.with(
|
.with(
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user