MyCrypto/common/components/ui/CodeBlock.tsx
James Prado 910093b761 Update code blocks & generate / send tx buttons (#1333)
* 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
2018-03-23 11:41:47 -05:00

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;