Skip to content

Commit

Permalink
Put logout all button back in security settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrkiger committed Jan 20, 2025
1 parent b4aa1b7 commit 15f985f
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,37 @@
import React from 'react';

// Partial components
// import Button from 'js/components/common/button';
import Button from 'js/components/common/button';
import PaginatedQueryUniversalTable from 'js/universalTable/paginatedQueryUniversalTable.component';

// Utilities
import useAccessLogsQuery, {type AccessLog} from 'js/query/queries/accessLogs.query';
import {formatTime} from 'js/utils';
// import sessionStore from 'js/stores/session';
import sessionStore from 'js/stores/session';

// Styles
import securityStyles from 'js/account/security/securityRoute.module.scss';

export default function AccessLogsSection() {
// function logOutAllSessions() {
// sessionStore.logOutAll();
// }
function logOutAllSessions() {
sessionStore.logOutAll();
}

return (
<>
<header className={securityStyles.securityHeader}>
<h2 className={securityStyles.securityHeaderText}>
{t('Recent account activity')}
</h2>

{/* TODO: we comment this out until we know how to handle exsiting
sessions for the moment of release of the feature. */}
{/*<div className={securityStyles.securityHeaderActions}>
<div className={securityStyles.securityHeaderActions}>
<Button
type='text'
size='m'
onClick={logOutAllSessions}
label={t('Log out of all devices')}
startIcon='logout'
/>
</div>*/}
</div>
</header>

<PaginatedQueryUniversalTable<AccessLog>
Expand Down

0 comments on commit 15f985f

Please sign in to comment.