From 1c4fa73a5cdcb4d530b6fb74a7d2abb4cd9a22fb Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Thu, 8 Feb 2024 16:32:53 +0900 Subject: [PATCH] fix examine panel --- .../{ExaminePanel.js => ExaminePanel.tsx} | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) rename tgui/packages/tgui/interfaces/{ExaminePanel.js => ExaminePanel.tsx} (68%) diff --git a/tgui/packages/tgui/interfaces/ExaminePanel.js b/tgui/packages/tgui/interfaces/ExaminePanel.tsx similarity index 68% rename from tgui/packages/tgui/interfaces/ExaminePanel.js rename to tgui/packages/tgui/interfaces/ExaminePanel.tsx index 502d3728b7741..8dc853a13850a 100644 --- a/tgui/packages/tgui/interfaces/ExaminePanel.js +++ b/tgui/packages/tgui/interfaces/ExaminePanel.tsx @@ -1,9 +1,18 @@ +import { BooleanLike } from '../../common/react'; import { useBackend } from '../backend'; -import { ByondUi, Section, Stack } from '../components'; +import { Section, Stack } from '../components'; import { Window } from '../layouts'; +import { CharacterPreview } from './common/CharacterPreview'; -export const ExaminePanel = (props, context) => { - const { act, data } = useBackend(context); +type Data = { + character_name: string; + obscured: BooleanLike; + assigned_map: string; + flavor_text: string; +}; + +export const ExaminePanel = (props) => { + const { act, data } = useBackend(); const { character_name, obscured, assigned_map, flavor_text } = data; return ( @@ -12,15 +21,7 @@ export const ExaminePanel = (props, context) => {
{!obscured && ( - + )}