From 4d479a4b0ebb4aec41500d7d4b74e0e15dfc417a Mon Sep 17 00:00:00 2001 From: meemofcourse <75212565+meemofcourse@users.noreply.github.com> Date: Mon, 26 Feb 2024 05:13:49 -0300 Subject: [PATCH] prettier --- tgui/packages/tgui/interfaces/Guestbook.tsx | 120 +++++++++----------- 1 file changed, 51 insertions(+), 69 deletions(-) diff --git a/tgui/packages/tgui/interfaces/Guestbook.tsx b/tgui/packages/tgui/interfaces/Guestbook.tsx index c2f7d7da242c..d1fb09aa8499 100644 --- a/tgui/packages/tgui/interfaces/Guestbook.tsx +++ b/tgui/packages/tgui/interfaces/Guestbook.tsx @@ -1,5 +1,5 @@ import { useBackend } from '../backend'; -import { useLocalState } from "../backend"; +import { useLocalState } from '../backend'; import { Stack, Button, Input, Section, Box } from '../components'; import { Window } from '../layouts'; @@ -14,78 +14,60 @@ type NameData = { export const Guestbook = (props, context) => { const { act, data } = useBackend(context); - const { - names = [], - } = data; + const { names = [] } = data; - const [lastNameBeforeEdit, setLastNameBeforeEdit] - = useLocalState(context, "lastNameBeforeEdit", null); + const [lastNameBeforeEdit, setLastNameBeforeEdit] = useLocalState< + string | null + >(context, 'lastNameBeforeEdit', null); return ( - + - {!names.length && ( -
- {"No known names!"} -
- ) - || ( - - {names.map(name => ( - -
- - -
-
- ))} -
- )} + {(!names.length &&
{'No known names!'}
) || ( + + {names.map((name) => ( + +
+ + +
+
+ ))} +
+ )}
);