Skip to content

Commit e4f1fee

Browse files
Hot fixes to hide perp (#21)
* bugfix/936 make confirm button visible when disabled * change vh to percents for the modal * fix dialog height * fix minting * feat/947 comment perp logic --------- Co-authored-by: Nadiia Balaian <nadiia.balaian@gmail.com>
1 parent 66ae8b9 commit e4f1fee

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

src/components/Button.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ const Button = styled.button<{
5050
}
5151
5252
&:disabled {
53-
border-color: ${theme.colors.borderSecondary};
53+
border-color: ${theme.colors.textDisabled};
5454
background: ${theme.colors.borderSecondary};
55-
color: ${theme.colors.textDisabled};
55+
color: ${theme.colors.textSecondary};
5656
}
5757
`;
5858
case red:

src/components/Header/DepositWithdrawModal.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ const TokenIcon = styled.img`
204204

205205
const DialogStyled = styled(Dialog)`
206206
${media.mobile} {
207-
height: 100vh;
207+
height: 100%;
208208
padding: 24px 0;
209209
}
210210
`;
@@ -217,8 +217,8 @@ const DialogTitleStyled = styled(SmartFlex)`
217217

218218
const DialogContainerStyled = styled(SmartFlex)`
219219
${media.mobile} {
220-
height: 90vh;
221-
padding-bottom: 0;
220+
height: 100%;
221+
padding-bottom: 30px;
222222
}
223223
`;
224224

src/stores/AccountStore.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class AccountStore {
8585
try {
8686
await bcNetwork!.addAssetToWallet(assetId);
8787
} catch (error: any) {
88-
notificationStore.toast(createToast({ text: error }), { type: "error" });
88+
notificationStore.toast(createToast({ text: error.message }), { type: "error" });
8989
}
9090
};
9191

src/stores/TradeStore.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ class TradeStore {
174174
const bcNetwork = blockchainStore.currentInstance;
175175

176176
try {
177-
const markets = await bcNetwork!.fetchPerpAllMarkets();
178-
this.setPerpMarkets(markets);
177+
// const markets = await bcNetwork!.fetchPerpAllMarkets();
178+
this.setPerpMarkets([]);
179179
} catch (error) {
180180
console.error("[PERP] Error init perp market", error);
181181
}

src/themes/GlobalStyles.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,17 @@ const globalModalStyles = (theme: Theme) => css`
3838
.rc-dialog-content {
3939
border-radius: 10px;
4040
background: ${theme.colors.bgSecondary};
41+
height: 100%;
4142
}
4243
4344
.rc-dialog-body {
4445
padding: 0;
4546
box-sizing: border-box;
47+
height: 100%;
48+
// use direct child selector to set styles for the 3rd party library div
49+
> div {
50+
height: 100%;
51+
}
4652
}
4753
4854
.rc-dialog-header {

0 commit comments

Comments
 (0)