mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 14:15:06 +01:00
d6f58bceb0
* allow SnapController to call `ApprovalController:updateRequestState` action * combine popups * show only autorship pill on result * lint * update `snaps-monorepo@0.31.0` and regen policies * dedupe deps and fix fencing * fix update button text * fix fencing * Update a bunch of e2es * address requested changes * update policy * bump key-tree * fix lint * Update RPC E2E * fix locales * Remove wrong instance of window handle polling * design changes and address pr comments * remove unused imports * fix lint * fix fencing * remove unused locales * fence things * re-add redirection * bump test-snaps version * Fix update e2e * fix redirecting logic and address requested changes * force update metamask state on approved * move force update --------- Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
40 lines
998 B
JavaScript
40 lines
998 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import Box from '../../../ui/box/box';
|
|
import {
|
|
AlignItems,
|
|
BLOCK_SIZES,
|
|
FLEX_DIRECTION,
|
|
FONT_WEIGHT,
|
|
JustifyContent,
|
|
TextVariant,
|
|
} from '../../../../helpers/constants/design-system';
|
|
import ActionableMessage from '../../../ui/actionable-message/actionable-message';
|
|
import { Text } from '../../../component-library';
|
|
|
|
const InstallError = ({ title, error }) => {
|
|
return (
|
|
<Box
|
|
flexDirection={FLEX_DIRECTION.COLUMN}
|
|
alignItems={AlignItems.center}
|
|
justifyContent={JustifyContent.center}
|
|
height={BLOCK_SIZES.FULL}
|
|
padding={2}
|
|
>
|
|
<Text fontWeight={FONT_WEIGHT.BOLD} variant={TextVariant.headingLg}>
|
|
{title}
|
|
</Text>
|
|
<Box padding={2}>
|
|
<ActionableMessage type="danger" message={error} />
|
|
</Box>
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
InstallError.propTypes = {
|
|
title: PropTypes.node.isRequired,
|
|
error: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export default InstallError;
|