This repository was archived by the owner on May 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-32
lines changed
tgui/packages/tgui/interfaces Expand file tree Collapse file tree 1 file changed +15
-32
lines changed Original file line number Diff line number Diff line change 11import { useBackend } from '../backend' ;
2- import { Section , Stack } from '../components' ;
2+ import { Section , Stack , Table , Collapsible } from '../components' ;
3+ import { TableCell , TableRow } from '../components/Table' ;
34import { Window } from '../layouts' ;
45
56type Data = {
@@ -34,39 +35,21 @@ export const PsionicComplexus = (props, context) => {
3435 const { faculties = [ ] } = data ;
3536 return (
3637 < Window width = { 620 } height = { 500 } >
37- < Window . Content >
38- < Section scrollable fill >
39- < Stack vertical >
40- < Stack . Item textColor = "red" fontSize = "20px" >
41- Summary
42- </ Stack . Item >
43- < Stack . Item >
44- < Stack vertical >
45- { faculties . map ( faculty => (
46- < Stack . Item
47- key = { faculty . name } >
48- < Section title = { faculty . name } >
49-
50-
51- < Stack vertical >
52-
53- { faculty . powers . map ( power => (
54- < Stack . Item
55- key = { power . name } >
56- { power . name + ": " + power . description }
57-
58- </ Stack . Item >
59-
60- ) ) }
61-
62- </ Stack >
38+ < Window . Content scrollable >
39+ { faculties . map ( faculty => (
40+ < Section title = { faculty . name } key = { faculty . name } >
41+ { faculty . powers . map ( power => (
42+ < Collapsible
43+ key = { power . name }
44+ title = { power . name } bold >
45+ < Section >
46+ { power . description }
6347 </ Section >
64- </ Stack . Item >
48+ </ Collapsible >
6549 ) ) }
66- </ Stack >
67- </ Stack . Item >
68- </ Stack >
69- </ Section >
50+ </ Section >
51+
52+ ) ) }
7053 </ Window . Content >
7154 </ Window >
7255 ) ;
You can’t perform that action at this time.
0 commit comments