Skip to content

Commit

Permalink
Follows coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyMitch committed Mar 5, 2024
1 parent d0b46c7 commit 53a5dbb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import './styles.css';
import React from 'react';
import './RefreshExpiryDialog.css';
import { LoginProps } from '../types';
import { useKeycloak } from '../state/useKeycloak';

type RefreshExpiryDialogProps = {
isVisible: boolean;
loginProps?: LoginProps;
};
import { RefreshExpiryDialogProps } from '../../types';
import { useKeycloak } from '../../state/useKeycloak';

export const RefreshExpiryDialog = (props: RefreshExpiryDialogProps) => {
const { isVisible, loginProps } = props;
Expand All @@ -21,7 +16,7 @@ export const RefreshExpiryDialog = (props: RefreshExpiryDialogProps) => {
<div className="kcr_dialog-content">
<p className="kcr_dialog-message">Your login session has expired.</p>
<button className="kcr_button" onClick={() => login(loginProps)}>
RE-LOGIN
RE-LOG
</button>
</div>
</dialog>
Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion src/state/useKeycloak.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { useContext, useMemo } from 'react';

import { AuthContext } from '../context';
import { decodeJWT, hasAllRoles, hasAtLeastOneRole } from '../utils';
import { AuthService, HasRoleOptions, LoginProps } from '../types';
Expand Down

0 comments on commit 53a5dbb

Please sign in to comment.