fix dom elements type in intro

This commit is contained in:
August Skare
2018-10-25 14:14:47 +02:00
parent 1899493ca8
commit fb24a18f3f
3 changed files with 11 additions and 7 deletions

View File

@@ -45,7 +45,7 @@ interface IntroLeadProps {
function IntroLead(props: IntroLeadProps) {
return (
<StyledIntroLead>
<StyledIntroLead as="div">
<Title>{props.title}</Title>
{props.children}
</StyledIntroLead>

View File

@@ -17,9 +17,11 @@ function Cov() {
<Base context={context}>
<Intro>
<IntroLead title="Measure your tests">
When it comes to writing smart contracts, testing is one of the most important steps of the process.
In order to quantify the robustness of your Solidity testing suite, you need to measure its code
coverage.
<p>
When it comes to writing smart contracts, testing is one of the most important steps of the
process. In order to quantify the robustness of your Solidity testing suite, you need to measure
its code coverage.
</p>
</IntroLead>
<IntroAside>
<Code

View File

@@ -17,9 +17,11 @@ function Profiler() {
<Base context={context}>
<Intro>
<IntroLead title="Headline">
Sol-profiler gathers line-by-line gas usage for any transaction submitted through your provider.
This will help you find unexpected inefficiencies in parts of your smart contract, and take a
data-driven approach to optimizing it.
<p>
Sol-profiler gathers line-by-line gas usage for any transaction submitted through your provider.
This will help you find unexpected inefficiencies in parts of your smart contract, and take a
data-driven approach to optimizing it.
</p>
</IntroLead>
<IntroAside>
<Code language="javascript" diff gutterLength={6} gutter={[15, 15, undefined, 21747, 20303, 1435]}>