Skip to content

Commit 0c6447e

Browse files
refactor(web): error-display-stake
1 parent 2a13841 commit 0c6447e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

web/src/pages/Courts/CourtDetails/StakePanel/StakeWithdrawButton.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export enum ActionType {
3030
withdraw = "withdraw",
3131
}
3232

33+
const Container = styled.div`
34+
display: flex;
35+
gap: 8px;
36+
flex-direction: column;
37+
`;
38+
3339
const ErrorLabel = styled.label`
3440
color: ${({ theme }) => theme.error};
3541
`;
@@ -147,7 +153,7 @@ const StakeWithdrawButton: React.FC<IActionButton> = ({
147153
const { text, checkDisabled, onClick } = buttonProps[isAllowance ? ActionType.allowance : action];
148154
return (
149155
<EnsureChain>
150-
<>
156+
<Container>
151157
<Button
152158
text={text}
153159
isLoading={isSending}
@@ -163,7 +169,7 @@ const StakeWithdrawButton: React.FC<IActionButton> = ({
163169
onClick={onClick}
164170
/>
165171
{setStakeError && <ErrorLabel> {setStakeError.message}</ErrorLabel>}
166-
</>
172+
</Container>
167173
</EnsureChain>
168174
);
169175
};

0 commit comments

Comments
 (0)