no dropIn in alert
This commit is contained in:
parent
e320c0fd66
commit
02ecea7d52
@ -4,19 +4,6 @@ import { AiOutlineCheckCircle } from "react-icons/ai";
|
|||||||
import '../../styles/Messages.css'
|
import '../../styles/Messages.css'
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
|
||||||
const dropIn = {
|
|
||||||
hidden: {
|
|
||||||
y: "-100vh",
|
|
||||||
},
|
|
||||||
visible: {
|
|
||||||
y: "0",
|
|
||||||
},
|
|
||||||
exit: {
|
|
||||||
y: "-100vh",
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
interface AlertProps {
|
interface AlertProps {
|
||||||
handleClose: Function,
|
handleClose: Function,
|
||||||
text: string
|
text: string
|
||||||
@ -30,7 +17,6 @@ function GreenAlert({ handleClose, text }: AlertProps) {
|
|||||||
<motion.div
|
<motion.div
|
||||||
onClick={(e) => e.stopPropagation()}
|
onClick={(e) => e.stopPropagation()}
|
||||||
className="greenAlert"
|
className="greenAlert"
|
||||||
// variant={dropIn}
|
|
||||||
initial="hidden"
|
initial="hidden"
|
||||||
animate="visible"
|
animate="visible"
|
||||||
exit="exit"
|
exit="exit"
|
||||||
|
|||||||
@ -4,19 +4,6 @@ import { BiErrorCircle } from "react-icons/bi";
|
|||||||
import '../../styles/Messages.css'
|
import '../../styles/Messages.css'
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
|
|
||||||
const dropIn = {
|
|
||||||
hidden: {
|
|
||||||
y: "-100vh",
|
|
||||||
},
|
|
||||||
visible: {
|
|
||||||
y: "0",
|
|
||||||
},
|
|
||||||
exit: {
|
|
||||||
y: "-100vh",
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
interface AlertProps {
|
interface AlertProps {
|
||||||
handleClose: Function,
|
handleClose: Function,
|
||||||
text: string
|
text: string
|
||||||
|
|||||||
@ -6,18 +6,6 @@ import React from "react";
|
|||||||
import { MdQrCodeScanner } from "react-icons/md";
|
import { MdQrCodeScanner } from "react-icons/md";
|
||||||
import { GiCrownedSkull, GiWingedSword } from "react-icons/gi";
|
import { GiCrownedSkull, GiWingedSword } from "react-icons/gi";
|
||||||
|
|
||||||
const dropIn = {
|
|
||||||
hidden: {
|
|
||||||
y: "-100vh",
|
|
||||||
},
|
|
||||||
visible: {
|
|
||||||
y: "0",
|
|
||||||
},
|
|
||||||
exit: {
|
|
||||||
y: "-100vh",
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
interface AlertProps {
|
interface AlertProps {
|
||||||
handleClose: Function,
|
handleClose: Function,
|
||||||
text: string,
|
text: string,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user