1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui/pages/keyring-snaps/snap-account-detail-page/detail.tsx
Monte Lai 3747bc61ef
fix: overflow of link and warnings (#20375)
* fix: overflow of link and warnings

* fix: update snapshot

* --wrapped in React.memo HOC
--changed Website to a clickable link
--slightly better overflow wrapping, but the best would be to wrap on dots and slashes

* updated snapshot

---------

Co-authored-by: Howard Braham <howrad@gmail.com>
2023-08-29 17:22:53 -04:00

28 lines
591 B
TypeScript

import React from 'react';
import { Box, Text } from '../../../components/component-library';
import {
FlexDirection,
OverflowWrap,
TextVariant,
} from '../../../helpers/constants/design-system';
const Detail = ({
title,
children,
}: React.PropsWithChildren<{ title: string }>) => {
return (
<Box flexDirection={FlexDirection.Column} marginBottom={4}>
<Text
variant={TextVariant.bodySmBold}
overflowWrap={OverflowWrap.BreakWord}
marginBottom={1}
>
{title}
</Text>
{children}
</Box>
);
};
export default Detail;