Skip to content

Commit

Permalink
🎨 Formatted modal component
Browse files Browse the repository at this point in the history
  • Loading branch information
dnrm committed May 18, 2022
1 parent cf324da commit 7072182
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";

const Modal = ({ title, hide, confirmDelete }: any) => {

return (
<div className="mt-40 flex justify-between items-center flex-col shadow-xl bg-white overflow-y-auto overflow-x-hidden fixed z-50 max-w-4xl border-gray-200 border-2 rounded-xl mx-auto h-1/3 md:inset-0">
<div className="relative p-4 w-full h-full md:h-auto">
Expand All @@ -11,7 +10,10 @@ const Modal = ({ title, hide, confirmDelete }: any) => {
</div>
<div className="title text-xl">{title}</div>
<div className="buttons grid grid-cols-2 gap-4 p-4 w-full">
<button className="p-2 bg-red-500 text-white px-8 rounded-md w-full col-span-1" onClick={confirmDelete}>
<button
className="p-2 bg-red-500 text-white px-8 rounded-md w-full col-span-1"
onClick={confirmDelete}
>
Confirm
</button>
<button
Expand Down

1 comment on commit 7072182

@vercel
Copy link

@vercel vercel bot commented on 7072182 May 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

crystal – ./

crystal-dnrm.vercel.app
crystal.medina.dev
crystal-git-main-dnrm.vercel.app

Please sign in to comment.