Skip to content

Commit

Permalink
feat: add xrpl to coreum transactions (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
akhlopiachyi committed May 27, 2024
1 parent 6587ac4 commit f89bd13
Show file tree
Hide file tree
Showing 20 changed files with 227 additions and 1,404 deletions.
6 changes: 3 additions & 3 deletions packages/ui/src/components/load_and_exist/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { useHeightStyles, useMaxHeightStyles, useVisiblityStyles } from '@/style
import { FC, PropsWithChildren } from 'react';
import { useStyles } from 'tss-react/mui';

type LoadAndExistProps = { loading: boolean; exists: boolean };
type LoadAndExistProps = { loading: boolean; exists: boolean; className?: string };

const LoadAndExist: FC<PropsWithChildren<LoadAndExistProps>> = (props) => {
const { loading, exists, children } = props;
const { loading, exists, children, className } = props;
const { cx } = useStyles();
const visibility = useVisiblityStyles().classes;
const height = useHeightStyles().classes;
Expand All @@ -18,7 +18,7 @@ const LoadAndExist: FC<PropsWithChildren<LoadAndExistProps>> = (props) => {
<>
{loading && <LinearLoading className={maxHeight.maxHScreen} />}
{!exists && !loading && <NotFound />}
<div className={cx({ [visibility.invisible]: loading || !exists }, height.hFull)}>
<div className={cx({ [visibility.invisible]: loading || !exists }, className, height.hFull)}>
{children}
</div>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports[`screen: TransactionDetails/WithdrawCommission matches snapshot 1`] = `
name="validatorAddress"
/>
<b />
{"amount":"0 UTESTCORE"}
{"amount":"0 UCORE"}
</span>
</p>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exports[`screen: TransactionDetails/WithdrawReward matches snapshot 1`] = `
id="Name"
name="validatorAddress"
/>
{"amount":"0 UTESTCORE"}
{"amount":"0 UCORE"}
</span>
</p>
`;
Loading

0 comments on commit f89bd13

Please sign in to comment.