Skip to content

Commit

Permalink
fix: Remove error timestamp (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab authored Aug 7, 2024
2 parents 8cc0d8a + 29f620a commit de25ec8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/app/components/Modals/ErrorModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { format } from "date-fns";
import { IoMdClose } from "react-icons/io";

import { useError } from "@/app/context/Error/ErrorContext";
Expand Down Expand Up @@ -78,8 +77,6 @@ export const ErrorModal: React.FC<ErrorModalProps> = ({
}
};

const formattedErrorTime = format(errorTime, "dd MMMM yyyy 'at' HH:mm:ss");

return (
<GeneralModal open={open} onClose={onClose}>
<div className="mb- flex items-center justify-end">
Expand All @@ -94,7 +91,6 @@ export const ErrorModal: React.FC<ErrorModalProps> = ({
<h3 className="text-center font-bold text-error">{getErrorTitle()}</h3>
<div className="flex flex-col gap-3">
<p className="text-center">{getErrorMessage()}</p>
<p className="text-center text-xs opacity-50">{formattedErrorTime}</p>
</div>
<div className="mt-4 flex justify-around gap-4">
<button
Expand Down

0 comments on commit de25ec8

Please sign in to comment.