feat : update btn and modal for better ui
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user