Skip to content

Commit

Permalink
Adjust loader position
Browse files Browse the repository at this point in the history
  • Loading branch information
david0xd committed Jul 9, 2024
1 parent b99812e commit 6cbd3d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions ui/components/app/snaps/snap-home-page/snap-home-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import {
} from '../../../../selectors';
import { SnapDelineator } from '../snap-delineator';
import { DelineatorType } from '../../../../helpers/constants/snaps';
import { TextVariant } from '../../../../helpers/constants/design-system';
import {
BlockSize,
TextVariant,
} from '../../../../helpers/constants/design-system';
import { Copyable } from '../copyable';
import { useI18nContext } from '../../../../hooks/useI18nContext';
import { deleteInterface } from '../../../../store/actions';
Expand Down Expand Up @@ -61,7 +64,7 @@ export const SnapHomeRenderer = ({ snapId }) => {
}, [unapprovedTemplatedConfirmations, unapprovedConfirmations, history]);

return (
<Box>
<Box height={BlockSize.Full}>
{error && (
<SnapDelineator snapName={snapName} type={DelineatorType.Error}>
<Text variant={TextVariant.bodySm} marginBottom={4}>
Expand Down
2 changes: 2 additions & 0 deletions ui/components/app/snaps/snap-ui-renderer/snap-ui-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import PulseLoader from '../../../ui/pulse-loader';
import {
AlignItems,
BlockSize,
Display,
JustifyContent,
} from '../../../../helpers/constants/design-system';
import { mapToTemplate } from './utils';
Expand Down Expand Up @@ -50,6 +51,7 @@ const SnapUIRendererComponent = ({
if (isLoading || !content) {
return (
<Box
display={Display.Flex}
justifyContent={JustifyContent.center}
alignItems={AlignItems.center}
height={BlockSize.Full}
Expand Down
3 changes: 2 additions & 1 deletion ui/pages/snaps/snap-view/snap-home.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import PropTypes from 'prop-types';

import { SnapHomeRenderer } from '../../../components/app/snaps/snap-home-page/snap-home-renderer';
import { Box } from '../../../components/component-library';
import { BlockSize } from '../../../helpers/constants/design-system';

function SnapHome({ snapId }) {
return (
<Box>
<Box height={BlockSize.Full}>
<SnapHomeRenderer snapId={snapId} />
</Box>
);
Expand Down

0 comments on commit 6cbd3d7

Please sign in to comment.