diff --git a/src/app/features/settings/developer-tools/DevelopTools.tsx b/src/app/features/settings/developer-tools/DevelopTools.tsx index 1b657e16..a3e33865 100644 --- a/src/app/features/settings/developer-tools/DevelopTools.tsx +++ b/src/app/features/settings/developer-tools/DevelopTools.tsx @@ -12,7 +12,7 @@ import { OverlayCenter, Modal, Chip, - config, + Button, } from 'folds'; import { MatrixEvent } from 'matrix-js-sdk'; import FocusTrap from 'focus-trap-react'; @@ -29,6 +29,7 @@ import { stopPropagation } from '../../../utils/keyboard'; function AccountData() { const mx = useMatrixClient(); + const [view, setView] = useState(false); const [accountData, setAccountData] = useState(() => Array.from(mx.store.accountData.values())); const [selectedEvent, selectEvent] = useState(); @@ -60,28 +61,49 @@ function AccountData() { direction="Column" gap="400" > - - - Types - - {accountData.map((mEvent) => ( - - - {mEvent.getType()} - - - ))} + setView(!view)} + variant="Secondary" + fill="Soft" + size="300" + radii="300" + outlined + before={ + + } + > + {view ? 'Collapse' : 'Expand'} + + } + /> + {view && ( + + + Types + + {accountData.map((mEvent) => ( + + + {mEvent.getType()} + + + ))} + - - + + )} {selectedEvent && ( }>