Skip to content

Commit

Permalink
remove going back on modal close
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Apr 3, 2024
1 parent d009971 commit 7724c27
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions frontend/components/modal/ErrorModal.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { Button } from '@components/buttons/Button'
import { ModalWrapper } from '@components/modal/ModalWrapper'
import { useRouter } from 'next/navigation'

export function ErrorModal({ showModal }: { showModal: Function }) {
const router = useRouter()
return (
<ModalWrapper>
<div className="w-full max-w-[600px] divide-y divide-white divide-opacity-25 border border-white border-opacity-25 bg-black bg-opacity-50 text-center">
Expand All @@ -21,7 +19,6 @@ export function ErrorModal({ showModal }: { showModal: Function }) {
type={'primary'}
onClick={() => {
showModal(false)
router.back()
}}
>
<span className="flex items-center gap-2">
Expand Down

0 comments on commit 7724c27

Please sign in to comment.