feat : update btn and modal for better ui

This commit is contained in:
alij
2024-06-09 22:48:22 -07:00
parent 0c28e72536
commit 114440f48c
6 changed files with 46 additions and 33 deletions

View File

@@ -54,9 +54,11 @@ export default function MuiModal({
<motion.div className="w-full h-full flex flex-col justify-between text-center items-center">
{children}
</motion.div>
<motion.div className="w-full h-full flex justify-end items-center gap-2 md:gap-3 text-lg md:text-xl">
<motion.div className={`w-full h-full flex ${submitText ? 'justify-end' : 'justify-center' } items-center gap-2 md:gap-3 text-lg md:text-xl`}>
<Button onClick={() => handleClose()}> بستن </Button>
<Button onClick={submitOnClick}> {submitText} </Button>
{submitText && (
<Button onClick={submitOnClick}> {submitText} </Button>
)}
</motion.div>
</motion.div>
</Modal>