This commit is contained in:
Mirco Wittrien 2023-11-02 09:33:45 +01:00
parent c9c31b13b6
commit 489f64510c
2 changed files with 24 additions and 4 deletions

View File

@ -1547,6 +1547,7 @@
"NoteTextarea": {"props": ["textarea"], "length": 1},
"Notice": {"props": ["notice", "platformIcon"]},
"NoticePlatform": {"props": ["iconAndroid", "textLink"]},
"PageImage": {"props": ["title", "image", "wrapper", "text"], "length": 5, "smaller": true},
"Pagination": {"props": ["pageButton", "pageControl"]},
"PeopleItem": {"props": ["peopleListItem", "active"]},
"PeopleItemInfo": {"props": ["listItemContents", "actions"], "length": 2},
@ -2983,6 +2984,9 @@
"noticewarning": ["Notice", "colorWarning"],
"noticewrapper": ["BDFDB", "noticeWrapper"],
"overflowellipsis": ["BDFDB", "overflowEllipsis"],
"pageimage": ["PageImage", "image"],
"pageimagetext": ["PageImage", "text"],
"pageimagewrapper": ["PageImage", "wrapper"],
"pagination": ["BDFDB", "pagination"],
"paginationbottom": ["BDFDB", "paginationBottom"],
"paginationbutton": ["Pagination", "pageButton"],

View File

@ -2,7 +2,7 @@
* @name FriendNotifications
* @author DevilBro
* @authorId 278543574059057154
* @version 1.9.6
* @version 1.9.7
* @description Shows a Notification when a Friend or a User, you choose to observe, changes their Status
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -186,9 +186,25 @@ module.exports = (_ => {
]
})
]
}) : BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.MessagesPopoutComponents.EmptyState, {
msg: BDFDB.LanguageUtils.LanguageStrings.AUTOCOMPLETE_NO_RESULTS_HEADER,
image: BDFDB.DiscordUtils.getTheme() == BDFDB.disCN.themelight ? "/assets/9b0d90147f7fab54f00dd193fe7f85cd.svg" : "/assets/308e587f3a68412f137f7317206e92c2.svg"
}) : BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Flex, {
className: BDFDB.disCN.pageimagewrapper,
direction: BDFDB.LibraryComponents.Flex.Direction.VERTICAL,
align: BDFDB.LibraryComponents.Flex.Align.CENTER,
children: [
BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCNS.pageimage + BDFDB.disCNS.margintop20 + BDFDB.disCN.marginbottom20,
style: {
flex: "0 1 auto",
background: `url("${BDFDB.DiscordUtils.getTheme() == BDFDB.disCN.themelight ? "/assets/a72746e7108167af95c8.svg" : "/assets/01864c39871ce619d855.svg"}") center/contain no-repeat`,
width: "415px",
height: "200px"
}
}),
BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.pageimagetext,
children: BDFDB.LanguageUtils.LanguageStrings.AUTOCOMPLETE_NO_RESULTS_HEADER
})
]
});
}
};