Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrotkk committed Sep 21, 2023
1 parent 2c47869 commit e51339a
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 15 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Update submodules
run: |
git submodule update --remote
- name: Prepare metadata
run: |
bash prepare_meta.sh
Expand Down
3 changes: 0 additions & 3 deletions src/components/ChainsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ export default function ChainsList(props: {
className={cls(cmn.chainsList, cmn.mbott10, cmn.mri10)}
style={{ marginLeft: '8px' }}
>
{/* <div className={cls([cmn.mleft5, size === 'md'])} style={{ marginTop: '-15px' }}>
<ChainApps skaleNetwork={props.config.skaleNetwork} chain={props.chain} size={size} handle={handle} />
</div> */}
{schainNames.map((name) => (
<Typography key={name}>
<Button
Expand Down
4 changes: 0 additions & 4 deletions src/components/TokenList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ export default function TokenList() {
>
{tokensText}
</p>

{/* <div className={cmn.mri5}>
{token ? <TokenBalance token={token} tokenBalances={tokenBalances} /> : null}
</div> */}
</div>
</AccordionSummary>

Expand Down
4 changes: 2 additions & 2 deletions src/components/WidgetBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export function WidgetBody(props) {
<SkPaper background="transparent" className={cmn.nop}>
<Collapse in={showFrom}>
<div className={cls(cmn.ptop20, cmn.mleft20, cmn.mri20, cmn.flex)}>
<p className={cls(cmn.nom, cmn.p, cmn.p4, cmn.pSec, cmn.flex, cmn.flexg)}>From</p>
<p className={cls(cmn.nom, cmn.p, cmn.p4, cmn.pSec, cmn.flex, cmn.flexg)}>From {appName1 ? 'app' : ''}</p>
<div>
{token ? (
<TokenBalance
Expand Down Expand Up @@ -192,7 +192,7 @@ export function WidgetBody(props) {
<Collapse in={showTo}>
<SkPaper background={destBg} className={cmn.nop}>
<div className={cls(cmn.ptop20, cmn.mleft20, cmn.mri20, cmn.flex)}>
<p className={cls(cmn.nom, cmn.p, cmn.p4, cmn.pSec, cmn.flex, cmn.flexg)}>To</p>
<p className={cls(cmn.nom, cmn.p, cmn.p4, cmn.pSec, cmn.flex, cmn.flexg)}>To {appName2 ? 'app' : ''}</p>
<DestTokenBalance />
</div>
<ChainsList
Expand Down
2 changes: 1 addition & 1 deletion src/core/interfaces/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface MetaportConfig {

skaleNetwork: SkaleNetwork
mainnetEndpoint?: string
chains?: string[]
chains: string[]

tokens: TokenMetadataMap
connections: TokenConnectionsMap
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { cls, styles, cmn } from './core/css'
import MetaportCore from './core/metaport'
import { chainBg } from './core/metadata'
import { BASE_EXPLORER_URLS } from './core/constants'
import { toWei, fromWei } from './core/convertation'

import { getWidgetTheme as getMetaportTheme } from './core/themes'

Expand Down Expand Up @@ -71,6 +72,8 @@ export {
cls,
styles,
cmn,
toWei,
fromWei,
interfaces,
dataclasses,
getMetaportTheme,
Expand Down
15 changes: 14 additions & 1 deletion src/styles/cmn.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}

.bordbott {
border-top: 1px $sk-paper-color solid;
border-bottom: 1px $sk-paper-color solid;
}

.bordleft {
Expand Down Expand Up @@ -72,6 +72,10 @@
padding-top: 20px !important;
}

.m10 {
margin: 10px !important;
}

.mtop10 {
margin-top: 10px !important;
}
Expand Down Expand Up @@ -255,6 +259,15 @@
text-align: center;
}

.pri {
text-align: right;
}

.pleft {
text-align: right;
}



:global([rk-chain-button]) {
display: none !important;
Expand Down

0 comments on commit e51339a

Please sign in to comment.