Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.

Commit 00af117

Browse files
committed
fix: stake field button
1 parent 4c7354a commit 00af117

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

src/components/Stake/StakeField.tsx

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@ export const StakeField: React.FC<StakeFieldProps> = ({
106106
}
107107

108108
return (
109-
<div className="bg-theme-bg rounded-lg">
109+
<div className="relative">
110110
<DesktopTradeFieldCard isSelected={isStakeSelected} error={error}>
111111
<div
112112
className={`flex flex-col ${className} ${!productConfig ? "opacity-50 cursor-not-allowed" : ""}`}
113+
ref={containerRef}
113114
onClick={() => handleSelect(true)}
114115
onBlur={(e) => {
115116
// Only blur if we're not clicking inside the component
@@ -119,8 +120,8 @@ export const StakeField: React.FC<StakeFieldProps> = ({
119120
}}
120121
tabIndex={0}
121122
>
122-
<div ref={containerRef} className="flex rounded-lg h-[48px]">
123-
<div className="flex flex-col justify-center flex-1">
123+
<div className="flex justify-between items-center">
124+
<div className="flex-1">
124125
<span className="text-left text-xs leading-[18px] font-normal text-theme-muted">
125126
Stake ({currency})
126127
</span>
@@ -144,24 +145,20 @@ export const StakeField: React.FC<StakeFieldProps> = ({
144145
</div>
145146
{productConfig && (
146147
<div className="flex items-center">
147-
<div className="w-8 h-8 rounded-full flex items-center justify-center transition-colors">
148-
<button
149-
className="flex items-center justify-center text-2xl text-theme"
150-
onClick={handleDecrement}
151-
aria-label="Decrease stake"
152-
>
153-
154-
</button>
155-
</div>
156-
<div className="w-8 h-8 rounded-full flex items-center justify-center transition-colors">
157-
<button
158-
className="flex items-center justify-center text-2xl text-theme"
159-
onClick={handleIncrement}
160-
aria-label="Increase stake"
161-
>
162-
+
163-
</button>
164-
</div>
148+
<button
149+
className="w-8 h-8 rounded-full flex items-center justify-center text-2xl text-theme"
150+
onClick={handleDecrement}
151+
aria-label="Decrease stake"
152+
>
153+
154+
</button>
155+
<button
156+
className="w-8 h-8 rounded-full flex items-center justify-center text-2xl text-theme"
157+
onClick={handleIncrement}
158+
aria-label="Increase stake"
159+
>
160+
+
161+
</button>
165162
</div>
166163
)}
167164
</div>

0 commit comments

Comments
 (0)