mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 02:55:41 +00:00
910093b761
* Update account view routing * update styles * Fix WalletDecrypt types * Replace disabled textareas with code blocks * Fix broken animation * Update snapshot * Make contract interact dropdowns clearable & searchable * Update node-sass to v4.8.3 * Fix swap inputs incorrectly incorrectly displaying invalid * Refactor send tx & generate tx button * Update broadcast tx & add more transaction details in tx confirmation * Add signing prop to send button * Update lite send * Update codeblock styles * Update snapshot * Revert renaming Dropdown
16 lines
296 B
TypeScript
16 lines
296 B
TypeScript
import React from 'react';
|
|
import './CodeBlock.scss';
|
|
|
|
interface Props {
|
|
children?: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
const CodeBlock = ({ children, className }: Props) => (
|
|
<pre className={`${className} CodeBlock`}>
|
|
<code>{children}</code>
|
|
</pre>
|
|
);
|
|
|
|
export default CodeBlock;
|