Skip to content

Commit

Permalink
tgui
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM authored and DOOM committed May 18, 2024
1 parent a932814 commit 229301f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tgui/packages/tgui/interfaces/MedRec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const MedRec = (props) => {
);
};

export const MedicalRecord = (props) => {
const MedicalRecord = (props) => {
const { act, data } = useBackend();
const [selectedTab, setSelectedTab] = useState(1);
const { authenticated, has_id } = data;
Expand Down Expand Up @@ -183,7 +183,7 @@ const AutopsyReport = (props) => {
);
};

export const HealthStatus = (props) => {
const HealthStatus = (props) => {
const { act, data } = useBackend();
const { authenticated, has_id, id_name, general_record, health } = data;

Expand Down
11 changes: 6 additions & 5 deletions tgui/packages/tgui/interfaces/SecRec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState } from 'react';
import { useBackend } from '../backend';
import { Box, Button, Section, Tabs, Flex, Icon, Stack, Dropdown, Input } from '../components';
import { Window } from '../layouts';

export const SecRec = (props) => {
const { act, data } = useBackend();
const { authenticated, selected_target_name } = data;
Expand Down Expand Up @@ -50,7 +51,7 @@ export const SecRec = (props) => {
</Window>
);
};
export const CrimeHist = (props) => {
const CrimeHist = (props) => {
const { act, data } = useBackend();
const [selectedTab, setSelectedTab] = useState(1);
const { incident, notes } = data;
Expand Down Expand Up @@ -78,7 +79,7 @@ export const CrimeHist = (props) => {
);
};

export const GeneralNotes = ({ act, notes }) => (
const GeneralNotes = ({ act, notes }) => (
<Section>
<Stack vertical align="start">
<Stack.Item>{notes.message}</Stack.Item>
Expand Down Expand Up @@ -107,7 +108,7 @@ export const GeneralNotes = ({ act, notes }) => (
</Section>
);

export const IncidentReport = ({ incident }) => (
const IncidentReport = ({ incident }) => (
<Section>
<Stack vertical>
<Stack.Item>Incident Reports:</Stack.Item>
Expand All @@ -120,7 +121,7 @@ export const IncidentReport = ({ incident }) => (
</Section>
);

export const CrewManifest = ({ searchQuery, setSearchQuery }) => {
const CrewManifest = ({ searchQuery, setSearchQuery }) => {
const { act, data } = useBackend();
const { human_mob_list, selected_target_name, authenticated, id_name } = data;

Expand Down Expand Up @@ -182,7 +183,7 @@ export const CrewManifest = ({ searchQuery, setSearchQuery }) => {
);
};

export const CrimeStat = (props) => {
const CrimeStat = (props) => {
const { act, data } = useBackend();
const { general_record, crime_stat } = data;

Expand Down

0 comments on commit 229301f

Please sign in to comment.