File tree Expand file tree Collapse file tree 1 file changed +8
-21
lines changed
src/components/Simulator/screens/SendReceive Expand file tree Collapse file tree 1 file changed +8
-21
lines changed Original file line number Diff line number Diff line change 1
- import React , { useEffect , useMemo , useState } from "react"
1
+ import { useEffect , useMemo , useState } from "react"
2
2
import { AnimatePresence , motion } from "framer-motion"
3
3
import { MdClose , MdInfo } from "react-icons/md"
4
- import { Flex , Icon , Text } from "@chakra-ui/react"
5
4
6
5
import type { SimulatorNavProps } from "@/lib/types"
7
6
@@ -85,32 +84,20 @@ export const ReceivedEther = ({
85
84
/>
86
85
< AnimatePresence >
87
86
{ showToast && ! hidden && (
88
- < Flex
87
+ < motion . div
89
88
key = "toast"
90
- position = "absolute"
91
- inset = { 4 }
92
- top = "auto"
93
- bottom = { 32 }
94
- borderRadius = "base"
95
- h = "fit-content"
96
- bg = "primary300"
97
- gap = { 3 }
98
- fontSize = "md"
99
- align = "center"
100
- p = { 4 }
101
- color = "background.base"
102
- as = { motion . div }
89
+ className = "absolute inset-4 bottom-32 top-auto flex h-fit items-center gap-3 rounded bg-primary-high-contrast p-4 text-md text-background"
103
90
initial = { { opacity : 0 } }
104
91
animate = { { opacity : 1 } }
105
92
exit = { { opacity : 0 } }
106
93
>
107
- < Icon as = { MdInfo } fontSize = " xl" />
108
- < Text m = { 0 } fontWeight = "bold" fontSize = "xs ">
94
+ < MdInfo className = "text- xl" />
95
+ < p className = "m-0 text-xs font-bold ">
109
96
You received { displayEth } ETH ({ displayUsd } )
110
97
{ sender ? ` from ${ sender } ` : "" } !
111
- </ Text >
112
- < Icon as = { MdClose } fontSize = " xl" onClick = { ( ) => setHidden ( true ) } />
113
- </ Flex >
98
+ </ p >
99
+ < MdClose className = "text- xl" onClick = { ( ) => setHidden ( true ) } />
100
+ </ motion . div >
114
101
) }
115
102
</ AnimatePresence >
116
103
</ motion . div >
You can’t perform that action at this time.
0 commit comments