Skip to content

Commit

Permalink
lin
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM authored and DOOM committed May 24, 2024
1 parent 5b26946 commit 69db211
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 25 deletions.
33 changes: 24 additions & 9 deletions tgui/packages/tgui/interfaces/MedRec.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import { Fragment, useState } from 'react';
import { useBackend } from '../backend';
import { Box, Button, Stack, Input, Dropdown, Section, Tabs, Flex, Icon } from '../components';
import {
Box,
Button,
Stack,
Input,
Dropdown,
Section,
Tabs,
Flex,
Icon,
} from '../components';
import { Window } from '../layouts';

export const MedRec = (props) => {
Expand All @@ -12,12 +22,14 @@ export const MedRec = (props) => {
<Tabs fluid={1}>
<Tabs.Tab
selected={selectedTab === 1}
onClick={() => setSelectedTab(1)}>
onClick={() => setSelectedTab(1)}
>
Health Status
</Tabs.Tab>
<Tabs.Tab
selected={selectedTab === 2}
onClick={() => setSelectedTab(2)}>
onClick={() => setSelectedTab(2)}
>
Medical Record
</Tabs.Tab>
</Tabs>
Expand Down Expand Up @@ -47,12 +59,14 @@ const MedicalRecord = (props) => {
<Tabs>
<Tabs.Tab
selected={selectedTab === 1}
onClick={() => setSelectedTab(1)}>
onClick={() => setSelectedTab(1)}
>
Medical Notes
</Tabs.Tab>
<Tabs.Tab
selected={selectedTab === 2}
onClick={() => setSelectedTab(2)}>
onClick={() => setSelectedTab(2)}
>
Autopsy Report
</Tabs.Tab>
</Tabs>
Expand Down Expand Up @@ -200,7 +214,8 @@ const HealthStatus = (props) => {
act(authenticated ? 'logout' : 'authenticate');
}}
/>
}>
}
>
<Button
fluid
icon="eject"
Expand Down Expand Up @@ -262,7 +277,7 @@ const deathOptions = [
];

const colors = {
'Deceased': 'red',
'Active': 'blue',
'Unfit': 'yellow',
Deceased: 'red',
Active: 'blue',
Unfit: 'yellow',
};
39 changes: 23 additions & 16 deletions tgui/packages/tgui/interfaces/SecRec.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import React, { useState } from 'react';
import { useBackend } from '../backend';
import { Box, Button, Section, Tabs, Flex, Icon, Stack, Dropdown, Input } from '../components';
import {
Box,
Button,
Section,
Tabs,
Flex,
Icon,
Stack,
Dropdown,
Input,
} from '../components';
import { Window } from '../layouts';

export const SecRec = (props) => {
Expand All @@ -16,19 +26,22 @@ export const SecRec = (props) => {
<Tabs fluid={1}>
<Tabs.Tab
selected={selectedTab === 1}
onClick={() => setSelectedTab(1)}>
onClick={() => setSelectedTab(1)}
>
Crew Manifest
</Tabs.Tab>
{!!authenticated && !!selected_target_name && (
<>
<Tabs.Tab
selected={selectedTab === 2}
onClick={() => setSelectedTab(2)}>
onClick={() => setSelectedTab(2)}
>
Criminal Status
</Tabs.Tab>
<Tabs.Tab
selected={selectedTab === 3}
onClick={() => setSelectedTab(3)}>
onClick={() => setSelectedTab(3)}
>
Criminal History
</Tabs.Tab>
</>
Expand Down Expand Up @@ -63,12 +76,14 @@ const CrimeHist = (props) => {
<Tabs>
<Tabs.Tab
selected={selectedTab === 1}
onClick={() => setSelectedTab(1)}>
onClick={() => setSelectedTab(1)}
>
General Notes
</Tabs.Tab>
<Tabs.Tab
selected={selectedTab === 2}
onClick={() => setSelectedTab(2)}>
onClick={() => setSelectedTab(2)}
>
Incident Report
</Tabs.Tab>
</Tabs>
Expand Down Expand Up @@ -160,7 +175,8 @@ const CrewManifest = ({ searchQuery, setSearchQuery }) => {
justify={'space-between'}
fluid={1}
py={2}
px={5}>
px={5}
>
<Stack.Item>{record}</Stack.Item>
<Stack.Item>
<Button
Expand Down Expand Up @@ -223,12 +239,3 @@ const CrimeStat = (props) => {
</Section>
);
};

// Constants
const crimeStatusOptions = ['Arrest', 'None', 'Incarcerated'];

const colors = {
Arrest: 'red',
None: 'blue',
Incarcerated: 'orange',
};

0 comments on commit 69db211

Please sign in to comment.