File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/components/Banners/DismissableBanner Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { useEffect , useState } from "react"
2
+ import { useTranslation } from "next-i18next"
2
3
import { MdClose } from "react-icons/md"
3
4
4
5
import { Button } from "@/components/ui/buttons/Button"
@@ -17,6 +18,7 @@ const DismissableBanner = ({
17
18
storageKey,
18
19
className,
19
20
} : DismissableBannerProps ) => {
21
+ const { t } = useTranslation ( "common" )
20
22
const [ show , setShow ] = useState < boolean > ( false )
21
23
22
24
useEffect ( ( ) => {
@@ -33,10 +35,10 @@ const DismissableBanner = ({
33
35
< BannerNotification shouldShow = { show } className = { cn ( "gap-8" , className ) } >
34
36
< Center className = "ms-auto" > { children } </ Center >
35
37
< Button
36
- className = "ms-auto"
38
+ className = "ms-auto hover:shadow-none "
37
39
onClick = { onClose }
38
- aria-label = "Close Banner"
39
- variant = "ghost "
40
+ aria-label = { t ( "close" ) }
41
+ size = "sm "
40
42
>
41
43
< MdClose />
42
44
</ Button >
You can’t perform that action at this time.
0 commit comments