Skip to content

Commit

Permalink
Fix linter???
Browse files Browse the repository at this point in the history
  • Loading branch information
Constellado committed Jul 21, 2024
1 parent 18c34fd commit 28ed881
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion tgui/packages/tgui/interfaces/ShipOwner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,40 @@ import {
} from '../components';
import { Window } from '../layouts';

type ShipOwnerData = {
crew: [CrewData];
jobs: [JobData];
jobIncreaseAllowed: [string];
memo: string;
pending: boolean;
joinMode: string;
cooldown: number;
applications: [ApplicationData];
isAdmin: boolean;
};

type ApplicationData = {
ref: string;
key: string;
name: string;
text: string;
status: string;
};

type CrewData = {
ref: string;
name: string;
allowed: boolean;
};

type JobData = {
ref: string;
name: string;
slots: number;
max: number;
def: number;
};

export const ShipOwner = (props, context) => {
return (
<Window width={620} height={620} resizable>
Expand All @@ -20,7 +54,7 @@ export const ShipOwner = (props, context) => {
};

const ShipOwnerContent = (props, context: any) => {
const { act, data } = useBackend(context);
const { act, data } = useBackend<ShipOwnerData>(context);
const [tab, setTab] = useLocalState(context, 'tab', 1);
const {
crew = [],
Expand Down

0 comments on commit 28ed881

Please sign in to comment.