Skip to content

Commit b2cc2e0

Browse files
fix(app): robot Layout, timeHistory (#1203)
2 parents 9d64dfd + 43fb4db commit b2cc2e0

File tree

26 files changed

+138
-131
lines changed

26 files changed

+138
-131
lines changed

src/components/HydrogenBalance/HydrogenBalance.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import { useGetBalanceBostrom } from 'src/containers/sigma/hooks';
2-
import SideButtonLink from '../sideButtonLink/SideButtonLink';
3-
import { routes } from 'src/routes';
42
import IconsNumber from '../IconsNumber/IconsNumber';
53

6-
function HydrogenBalance({ address, isVertical }) {
4+
type Props = {
5+
address?: string;
6+
isVertical?: boolean;
7+
};
8+
9+
function HydrogenBalance({ address, isVertical }: Props) {
710
const { totalAmountInLiquid } = useGetBalanceBostrom(address);
811

912
return (
10-
<SideButtonLink
11-
to={`${routes.neuron.getLink(address)}/sigma`}
12-
buttonType="hydrogen"
13-
>
13+
<span>
1414
<IconsNumber
1515
value={totalAmountInLiquid.currentCap}
1616
type="hydrogen"
1717
isVertical={isVertical}
1818
/>
19-
</SideButtonLink>
19+
</span>
2020
);
2121
}
2222

src/components/actionBar/styles.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
justify-content: center;
55
width: 100%;
66
position: fixed;
7-
bottom: 20px;
7+
bottom: 0px;
88
left: 0;
99
padding: 10px 0;
1010
background: linear-gradient(0deg,

src/components/ledger/stageActionBar.jsx

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,18 @@ export function TransactionSubmitted() {
6060
export function Confirmed({ txHash, txHeight, cosmos, onClickBtnClose }) {
6161
return (
6262
<ActionBar button={{ text: ' Fuck Google', onClick: onClickBtnClose }}>
63-
<Pane display="inline">Transaction</Pane>{' '}
64-
{cosmos ? (
65-
<LinkWindow to={`https://www.mintscan.io/txs/${txHash}`}>
66-
{trimString(txHash, 6, 6)}
67-
</LinkWindow>
68-
) : (
69-
<Link to={`/network/bostrom/tx/${txHash}`}>
70-
{trimString(txHash, 6, 6)}
71-
</Link>
72-
)}{' '}
73-
{txHeight && (
74-
<Pane display="inline">
75-
was included in the block <br /> at height{' '}
76-
{formatNumber(parseFloat(txHeight))}
77-
</Pane>
78-
)}
63+
<span>
64+
Transaction
65+
{cosmos ? (
66+
<LinkWindow to={`https://www.mintscan.io/txs/${txHash}`}>
67+
{trimString(txHash, 6, 6)}
68+
</LinkWindow>
69+
) : (
70+
<Link to={`/network/bostrom/tx/${txHash}`}>
71+
{trimString(txHash, 6, 6)}
72+
</Link>
73+
)}
74+
</span>
7975
</ActionBar>
8076
);
8177
}

src/components/sideButtonLink/SideButtonLink.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { Link } from 'react-router-dom';
22
import cx from 'classnames';
33
import styles from './SideButtonLink.module.scss';
44

5-
type ContainerLinkProps = {
5+
type ContainerLinkProps = {
66
to: string;
77
buttonType: 'sense' | 'hydrogen';
88
children: React.ReactNode;
99
};
1010

11-
function SideButtonLink({ to, buttonType, children }: ContainerLinkProps ) {
11+
function SideButtonLink({ to, buttonType, children }: ContainerLinkProps) {
1212
return (
1313
<Link to={to} className={cx(styles.main, styles[buttonType])}>
1414
{children}

src/containers/application/Header/CurrentApp/CurrentApp.module.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
grid-template-columns: 100px 1fr;
44
gap: 25px;
55
align-items: center;
6-
height: 100px;
6+
height: 90px;
77
border: none;
88
background: transparent;
99
color: rgb(31, 203, 255);
@@ -13,8 +13,8 @@
1313
&:hover {
1414
.networkBtn {
1515
&::before {
16-
width: 105px;
17-
height: 105px;
16+
width: 95px;
17+
height: 95px;
1818
}
1919
}
2020

@@ -40,8 +40,8 @@
4040

4141
&::before {
4242
content: '';
43-
width: 100px;
44-
height: 100px;
43+
width: 90px;
44+
height: 90px;
4545
background: #000000;
4646
box-shadow: 0px 0px 20px rgba(31, 203, 255, 0.4);
4747
position: absolute;
@@ -165,12 +165,11 @@
165165
gap: 25px;
166166
grid-template-columns: 100px 1fr;
167167
align-items: center;
168-
height: 100px;
168+
height: 90px;
169169

170170
@media (width < 768px) {
171171
grid-template-columns: 100px;
172172
}
173-
174173
}
175174

176175
.buttonWrapper {
@@ -186,4 +185,4 @@
186185
background: #0000008c;
187186
width: 170px;
188187
backdrop-filter: blur(7px);
189-
}
188+
}

src/containers/application/Header/SwitchAccount/SwitchAccount.module.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@mixin before-Avatar {
22
content: '';
3-
width: 100px;
4-
height: 100px;
3+
width: 90px;
4+
height: 90px;
55
background: #000000;
66
position: absolute;
77
border-radius: 50%;
@@ -33,7 +33,7 @@
3333
grid-template-columns: 1fr 105px;
3434
gap: 25px;
3535
align-items: center;
36-
height: 105px;
36+
height: 95px;
3737

3838
@media (max-width: 540px) {
3939
grid-template-columns: 1fr 60px;
@@ -60,8 +60,8 @@
6060

6161
.containerAvatarConnectTrue {
6262
&::before {
63-
width: 105px;
64-
height: 105px;
63+
width: 95px;
64+
height: 95px;
6565
}
6666
}
6767
}
@@ -103,8 +103,8 @@
103103
}
104104

105105
.containerAvatarConnect {
106-
width: 100px;
107-
height: 100px;
106+
width: 90px;
107+
height: 90px;
108108
// padding: 5px;
109109
transition: all 0.2s;
110110
position: relative;

src/containers/governance/proposalsDetail.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
ContainerGradientText,
1515
IconStatus,
1616
Item,
17+
MainContainer,
1718
} from '../../components';
1819

1920
import {
@@ -28,7 +29,6 @@ import ActionBarDetail from './actionBarDatail';
2829
import { formatNumber } from '../../utils/utils';
2930

3031
import ProposalsDetailProgressBar from './proposalsDetailProgressBar';
31-
import { MainContainer } from '../portal/components';
3232
import ProposalsRoutes from './proposalsRoutes';
3333

3434
import styles from './proposalsDetail.module.scss';

src/containers/mint/Mint.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
grid-gap: 16px;
2222
padding-bottom: 150px;
2323
position: relative;
24-
}
24+
}

src/containers/mint/Statistics/Statistics.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
margin-top: 10px;
44
margin-bottom: 50px;
55
display: grid;
6-
grid-template-columns: repeat(3, 300px);
6+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));;
77
grid-gap: 20px;
88
justify-content: center;
99
}

src/containers/txs/txsDetails.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { useState, useEffect } from 'react';
22
import { useParams } from 'react-router-dom';
33
import { useDevice } from 'src/contexts/device';
4+
import { MainContainer } from 'src/components';
5+
import { useAdviser } from 'src/features/adviser/context';
46
import InformationTxs from './informationTxs';
57
import Msgs from './msgs';
68
import ActionBarContainer from '../Search/ActionBarContainer';
7-
import { MainContainer } from '../portal/components';
89
import { getTxs } from './api/data';
910
import { ValueInformation } from './type';
1011
import { mapResponseDataGetTxs } from './api/mapping';
11-
import { useAdviser } from 'src/features/adviser/context';
1212

1313
function TxsDetails() {
1414
const { isMobile: mobile } = useDevice();
@@ -35,7 +35,7 @@ function TxsDetails() {
3535

3636
return (
3737
<>
38-
<MainContainer width="82%">
38+
<MainContainer>
3939
<InformationTxs data={information} />
4040
{msgs && <Msgs data={msgs} />}
4141
</MainContainer>

0 commit comments

Comments
 (0)