diff --git a/app/javascript/authentication/components/BaseIdleTimeout.tsx b/app/javascript/authentication/components/BaseIdleTimeout.tsx index 384ec79356..77ae4be68f 100644 --- a/app/javascript/authentication/components/BaseIdleTimeout.tsx +++ b/app/javascript/authentication/components/BaseIdleTimeout.tsx @@ -1,6 +1,7 @@ import React, { FunctionComponent, useEffect, useState } from "react" -import { AlertTypes, AppearanceStyleType, Button, Modal } from "@bloom-housing/ui-components" +import { AlertTypes, AppearanceStyleType, Button } from "@bloom-housing/ui-components" +import { Dialog } from "@bloom-housing/ui-seeds" const PROMPT_TIMEOUT = 60000 const events = ["mousemove", "keypress", "scroll"] @@ -70,6 +71,7 @@ const BaseIdleTimeout: FunctionComponent = (props: IdleTimeout const modalActions = [ , ] - return ( - { + clearTimeout(promptTimeout) + setPromptTimeout(undefined) + }} > - {promptText} - + {promptTitle} + {promptText} + {modalActions} + ) }