* feat: implement UI for logging out * feat: use old style dialogs for logout confirmation * feat: implement manage sessions * feat: implement session logout success dialog * feat: use snjs alert for revoking sessions confirmation * fix: make OtherSessionsLogout easier to read
22 lines
713 B
TypeScript
22 lines
713 B
TypeScript
import { FunctionComponent } from 'preact';
|
|
|
|
export const PreferencesPane: FunctionComponent = ({ children }) => (
|
|
<div className="color-black flex-grow flex flex-row overflow-y-auto min-h-0">
|
|
<div className="flex-grow flex flex-col py-6 items-center">
|
|
<div className="w-125 max-w-125 flex flex-col">
|
|
{children != undefined && Array.isArray(children)
|
|
? children
|
|
.filter((child) => child != undefined)
|
|
.map((child) => (
|
|
<>
|
|
{child}
|
|
<div className="min-h-3" />
|
|
</>
|
|
))
|
|
: children}
|
|
</div>
|
|
</div>
|
|
<div className="flex-basis-55 flex-shrink" />
|
|
</div>
|
|
);
|