From abb50c82e7e8fec6233e7fef4fae8da034355123 Mon Sep 17 00:00:00 2001
From: meemofcourse <75212565+meemofcourse@users.noreply.github.com>
Date: Sun, 21 Jan 2024 05:31:33 -0300
Subject: [PATCH] linters...
---
.../tgui/interfaces/RequestManager.js | 61 ++++++++++++++-----
1 file changed, 47 insertions(+), 14 deletions(-)
diff --git a/tgui/packages/tgui/interfaces/RequestManager.js b/tgui/packages/tgui/interfaces/RequestManager.js
index a55be0e28de0..5d8d2c468a53 100644
--- a/tgui/packages/tgui/interfaces/RequestManager.js
+++ b/tgui/packages/tgui/interfaces/RequestManager.js
@@ -16,19 +16,24 @@ export const RequestManager = (props, context) => {
const [filteredTypes, _] = useLocalState(
context,
'filteredTypes',
- Object.fromEntries(Object.entries(displayTypeMap).map(([type, _]) => [type, true]))
+ Object.fromEntries(
+ Object.entries(displayTypeMap).map(([type, _]) => [type, true])
+ )
);
const [searchText, setSearchText] = useLocalState(context, 'searchText');
// Handle filtering
- let displayedRequests = requests.filter((request) => filteredTypes[request.req_type]);
+ let displayedRequests = requests.filter(
+ (request) => filteredTypes[request.req_type]
+ );
if (searchText) {
const filterText = searchText.toLowerCase();
displayedRequests = displayedRequests.filter(
(request) =>
decodeHtmlEntities(request.message)
.toLowerCase()
- .includes(filterText) || request.owner_name.toLowerCase().includes(filterText)
+ .includes(filterText) ||
+ request.owner_name.toLowerCase().includes(filterText)
);
}
@@ -39,10 +44,16 @@ export const RequestManager = (props, context) => {
title="Requests"
buttons={
<>
- setSearchText(value)} placeholder={'Search...'} mr={1} />
+ setSearchText(value)}
+ placeholder={'Search...'}
+ mr={1}
+ />