Skip to content

Commit

Permalink
ran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsar-Salat committed Oct 19, 2023
1 parent f1722f0 commit de77f96
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 29 deletions.
34 changes: 17 additions & 17 deletions tgui/packages/tgui/interfaces/CTFPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ export const CTFPanel = (props, context) => {
const teams = data.teams || [];
const enabled = data.enabled || [];
return (
<Window
title="CTF Panel"
width={700}
height={600}>
<Window title="CTF Panel" width={700} height={600}>
<Window.Content scrollable>
<Box textAlign="center" fontSize="18px">
{enabled}
Expand All @@ -19,24 +16,21 @@ export const CTFPanel = (props, context) => {
<Divider />

<Flex align="center" wrap="wrap" textAlign="center" m={-0.5}>
{teams.map(team => (
{teams.map((team) => (
<Flex.Item key={team.name} width="49%" m={0.5} mb={8}>
<Section
key={team.name}
title={`${team.color} Team`}
>
<Section key={team.name} title={`${team.color} Team`}>
<Stack fill mb={1}>
<Stack.Item grow>
<Box>
<b>{team.team_size}</b> member
{team.team_size === 1 ? "" : "s"}
{team.team_size === 1 ? '' : 's'}
</Box>
</Stack.Item>

<Stack.Item grow>
<Box>
<b>{team.score}</b> point
{team.score === 1 ? "" : "s"}
{team.score === 1 ? '' : 's'}
</Box>
</Stack.Item>
</Stack>
Expand All @@ -46,18 +40,24 @@ export const CTFPanel = (props, context) => {
fontSize="18px"
fluid={1}
color={team.color.toLowerCase()}
onClick={() => act('jump', {
refs: team.refs,
})} />
onClick={() =>
act('jump', {
refs: team.refs,
})
}
/>

<Button
content="Join"
fontSize="18px"
fluid={1}
color={team.color.toLowerCase()}
onClick={() => act('join', {
refs: team.refs,
})} />
onClick={() =>
act('join', {
refs: team.refs,
})
}
/>
</Section>
</Flex.Item>
))}
Expand Down
14 changes: 2 additions & 12 deletions tgui/packages/tgui/interfaces/MinigamesMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,12 @@ import { Window } from '../layouts';
export const MinigamesMenu = (props, context) => {
const { act } = useBackend(context);
return (
<Window
title="Minigames Menu"
width={450}
height={200}>
<Window title="Minigames Menu" width={450} height={200}>
<Window.Content>
<Section title="Select Minigame" textAlign="center">
<Stack>
<Stack.Item grow>
<Button
content="CTF"
fluid={1}
fontSize={3}
textAlign="center"
lineHeight="3"
onClick={() => act('ctf')}
/>
<Button content="CTF" fluid={1} fontSize={3} textAlign="center" lineHeight="3" onClick={() => act('ctf')} />
</Stack.Item>
</Stack>
</Section>
Expand Down

0 comments on commit de77f96

Please sign in to comment.