Skip to content

Commit

Permalink
fix(app): fixes (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
happylolonly authored Dec 20, 2023
1 parent f32d51f commit 89f8b7b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 16 deletions.
2 changes: 0 additions & 2 deletions src/components/denom/denomArr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import Denom from './index';
// generated, recheck
type PossibleTokens =
| 'millivolt'
| 'v'
| 'milliampere'
| 'a'
| 'hydrogen'
| 'h'
| 'liquidpussy'
Expand Down
2 changes: 1 addition & 1 deletion src/containers/application/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function App() {
<div id={PORTAL_ID} className={styles.portal} />
)}

<AdviserContainer />
{!(location.pathname === '/') && <AdviserContainer />}

<Outlet />
</>
Expand Down
4 changes: 2 additions & 2 deletions src/containers/energy/tab/myEnergy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function MyEnergy({ slotsData, balacesResource, loadingAuthAccounts }: Props) {
flex-irection="row"
>
<Card
title={<DenomArr denomValue="a" />}
title={<DenomArr denomValue="milliampere" />}
value={
balacesResource.milliampere
? formatNumber(balacesResource.milliampere)
Expand All @@ -52,7 +52,7 @@ function MyEnergy({ slotsData, balacesResource, loadingAuthAccounts }: Props) {
x
</Pane>
<Card
title={<DenomArr denomValue="V" />}
title={<DenomArr denomValue="millivolt" />}
value={
balacesResource.millivolt
? formatNumber(balacesResource.millivolt)
Expand Down
8 changes: 4 additions & 4 deletions src/containers/mint/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,14 @@ function Mint() {
gridGap="20px"
justifyContent="center"
>
<CardStatisics
title={<ValueImg text="millivolt" />}
value={formatNumber(vestedV)}
/>
<CardStatisics
title={<ValueImg text="milliampere" />}
value={formatNumber(vestedA)}
/>
<CardStatisics
title={<ValueImg text="millivolt" />}
value={formatNumber(vestedV)}
/>
<CardStatisics
title="My Energy"
value={`${formatNumber(vestedA * vestedV)} W`}
Expand Down
2 changes: 1 addition & 1 deletion src/features/adviser/AdviserContainer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
width: 60%;

z-index: 3;
min-height: 90px; // 3 lines
min-height: 60px; // 2 lines of text

margin-top: -45px;
margin-bottom: 15px;
Expand Down
7 changes: 1 addition & 6 deletions src/pages/oracle/landing/OracleLanding.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $mobile-breakpoint: 480px;
flex-direction: column;
justify-content: space-between;
// header, footer widths, TODO: use variables
min-height: calc(100vh - 120px - 60px - 100px);
min-height: calc(100vh - 120px - 60px - 100px + 45px);

padding: 0 10px;

Expand Down Expand Up @@ -38,11 +38,6 @@ $mobile-breakpoint: 480px;
margin: 0px auto;
width: 415px;

// because of adviser container
position: relative;
top: -45px;
z-index: 5;

@media (width <= $mobile-breakpoint) {
width: unset;

Expand Down

0 comments on commit 89f8b7b

Please sign in to comment.