File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ const MintSellSteps: React.FC<IMintSellSteps> = ({ close, toggleIsOpen }) => {
76
76
items = { steps }
77
77
/>
78
78
< div className = "flex gap-[13.5px]" >
79
- < Button text = "Close " variant = "secondary" onPress = { close } />
79
+ < Button text = "Back " variant = "secondary" onPress = { close } />
80
80
{ currentStep === Step . Mint && (
81
81
< SplitButton
82
82
{ ...{ marketId, underlyingToken, initialBalanceRef } }
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ import { useState } from "react";
2
2
3
3
import { Modal } from "@kleros/ui-components-library" ;
4
4
5
+ import LightButton from "@/components/LightButton" ;
6
+
7
+ import CloseIcon from "@/assets/svg/close-icon.svg" ;
8
+
5
9
import DefaultPredict from "./DefaultPredict" ;
6
10
import MintSell from "./MintSell" ;
7
11
import MintSellSteps from "./MintSellSteps" ;
@@ -19,11 +23,18 @@ const PredictPopup: React.FC<IPredictPopup> = ({ isOpen, toggleIsOpen }) => {
19
23
const [ isMinting , setIsMinting ] = useState ( false ) ;
20
24
return (
21
25
< Modal
22
- className = "h-fit w-max overflow-x-hidden p-6 py-8"
23
- isDismissable
26
+ className = "relative h-fit w-max overflow-x-hidden p-6 py-8"
24
27
onOpenChange = { toggleIsOpen }
25
28
{ ...{ isOpen } }
26
29
>
30
+ < LightButton
31
+ className = "absolute top-4 right-4 p-1"
32
+ text = ""
33
+ icon = {
34
+ < CloseIcon className = "[&_path]:stroke-klerosUIComponentsSecondaryText size-4" />
35
+ }
36
+ onPress = { toggleIsOpen }
37
+ />
27
38
{ isMinting ? (
28
39
< MintSellSteps
29
40
close = { ( ) => setIsMinting ( false ) }
You can’t perform that action at this time.
0 commit comments