mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
3747bc61ef
* 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>
28 lines
591 B
TypeScript
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;
|