mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Add E2E tests for device code grant flow.
Handle more errors for device code. Dispatch a BSOD for an any unhandled exception from auth flow state
This commit is contained in:
@@ -57,7 +57,7 @@ interface PanelBodyHeaderProps extends PropsWithChildren<any> {
|
||||
onClose?: () => void;
|
||||
}
|
||||
|
||||
export const PanelBodyHeader: FC<PanelBodyHeaderProps> = ({ type = 'default', onClose, children }) => {
|
||||
export const PanelBodyHeader: FC<PanelBodyHeaderProps> = ({ type = 'default', onClose, children, ...props }) => {
|
||||
const [isClosed, setIsClosed] = useState<boolean>(false);
|
||||
const handleCloseClick = useCallback(() => {
|
||||
setIsClosed(true);
|
||||
@@ -71,6 +71,7 @@ export const PanelBodyHeader: FC<PanelBodyHeaderProps> = ({ type = 'default', on
|
||||
[styles.errorBodyHeader]: type === 'error',
|
||||
[styles.isClosed]: isClosed,
|
||||
})}
|
||||
{...props}
|
||||
>
|
||||
{type === 'error' && <span className={styles.close} onClick={handleCloseClick} />}
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user