Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM authored and DOOM committed Jun 3, 2024
1 parent fffcc9d commit 30809ac
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Fragment, useState } from 'react';

import { useBackend } from '../../backend';
import { useBackend } from '../backend';
import {
Box,
Button,
Expand All @@ -11,9 +11,9 @@ import {
Section,
Stack,
Tabs,
} from '../../components';
import { Window } from '../../layouts';
import { CompCommon, GeneralRecord, GenericStat } from './types';
} from '../components';
import { Window } from '../layouts';
import { CompCommon, GeneralRecord, GenericStat } from './Records/types';

// Medical Record Type
type MedicalRec = {
Expand Down
3 changes: 2 additions & 1 deletion tgui/packages/tgui/interfaces/Records/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Generic types so far used only by SecRec and ModRec
import { BooleanLike } from 'common/react';

// all mutable stats from dm are passed in this format.
export type GenericStat = {
Expand All @@ -17,7 +18,7 @@ export type GeneralRecord = {
// ui is very similar for both record systems.
export type CompCommon = {
// shared
authenticated: boolean;
authenticated: BooleanLike;
selected_target_name: string;
id_name: string;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react';

import { useBackend } from '../../backend';
import { useBackend } from '../backend';
import {
Box,
Button,
Expand All @@ -11,9 +11,9 @@ import {
Section,
Stack,
Tabs,
} from '../../components';
import { Window } from '../../layouts';
import { CompCommon, GeneralRecord, GenericStat } from './types';
} from '../components';
import { Window } from '../layouts';
import { CompCommon, GeneralRecord, GenericStat } from './Records/types';

// Security Record Type
type SecurityRec = {
Expand Down Expand Up @@ -121,7 +121,7 @@ const GeneralNotes = ({ act, notes }) => (
placeholder={'New entry...'}
onChange={(e, value) => {
act('updateStatRecord', {
stat_type: notes.statt_type,
record_type: notes.record_type,
stat: notes.stat,
new_value: value,
});
Expand Down
2 changes: 1 addition & 1 deletion tgui/packages/tgui/interfaces/Terminal/Terminal.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TODO: migrate to tsx
// TODO: migrate to tsx

import React, { useState } from 'react';

Expand Down

0 comments on commit 30809ac

Please sign in to comment.