Skip to content

Commit

Permalink
Nuh uh
Browse files Browse the repository at this point in the history
  • Loading branch information
AyIong committed Feb 3, 2025
1 parent e2980a9 commit 5bdeb4a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tgui/packages/tgui/interfaces/ErtManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
TextArea,
} from 'tgui-core/components';
import { BooleanLike } from 'tgui-core/react';
import { toTitleCase, decodeHtmlEntities } from 'tgui-core/string';
import { decodeHtmlEntities, toTitleCase } from 'tgui-core/string';

import { useBackend } from '../backend';
import { Window } from '../layouts';
Expand Down Expand Up @@ -158,12 +158,12 @@ const SendERT = (props) => {
<Stack.Item grow>
<Section
fill
scrollable
title="Send ERT"
buttons={
<>
{Object.entries(ERTTYPE).map(([typeName, typeColor]) => (
<Button
key={ERTTYPE[typeName]}
width={5}
textAlign="center"
color={ertType === typeName && typeColor}
Expand Down Expand Up @@ -202,7 +202,10 @@ const SendERT = (props) => {
{Object.entries(ERTJOB).map(([typeName, typeAct]) => {
const slotKey = `${typeName}Slots` as const;
return (
<LabeledList.Item label={toTitleCase(typeName)}>
<LabeledList.Item
key={ERTJOB[typeName]}
label={toTitleCase(typeName)}
>
{ertNum.map((number) => (
<Button
key={typeName + number}
Expand Down

0 comments on commit 5bdeb4a

Please sign in to comment.