Skip to content

Commit

Permalink
shorten to 30 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
13bfrancis committed Nov 22, 2024
1 parent 77563d0 commit e7e753f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions react-app/src/components/TimeoutModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { useGetUser } from "@/api";
import { intervalToDuration } from "date-fns";
import pluralize from "pluralize";

const TWENTY_MINS_IN_MILS = 1000 * 60 * 20;
const TEN_MINS_IN_MILS = 60 * 10;
const TWENTY_MINS_IN_MILS = 1000 * 30;
const TEN_MINS_IN_MILS = 30;

export const TimeoutModal = () => {
const [isModalOpen, setIsModalOpen] = useState(false);
Expand Down Expand Up @@ -67,8 +67,7 @@ export const TimeoutModal = () => {
<div className="py-4">
<span>
Your session will expire in <strong>{duration.minutes}</strong>{" "}
{pluralize("minute", duration.minutes)} and{" "}
<strong>{duration.seconds}</strong>{" "}
{pluralize("minute", duration.minutes)} and <strong>{duration.seconds}</strong>{" "}
{pluralize("second", duration.seconds)}.
</span>
</div>
Expand Down

0 comments on commit e7e753f

Please sign in to comment.