fix(v2): address docs nits

This commit is contained in:
Yangshun Tay 2019-10-11 21:42:37 -07:00
parent ffd927d1d0
commit 87821104f9

View File

@ -99,7 +99,7 @@ function DocItem(props) {
viewBox="0 0 40 40"
style={{
marginRight: '0.3em',
verticalAlign: 'middle',
verticalAlign: 'sub',
}}>
<g>
<path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z" />
@ -117,9 +117,11 @@ function DocItem(props) {
{lastUpdatedAt && (
<>
on{' '}
{new Date(
lastUpdatedAt * 1000,
).toLocaleDateString()}
<strong>
{new Date(
lastUpdatedAt * 1000,
).toLocaleDateString()}
</strong>
{lastUpdatedBy && ' '}
</>
)}
@ -128,6 +130,14 @@ function DocItem(props) {
by <strong>{lastUpdatedBy}</strong>
</>
)}
{process.env.NODE_ENV === 'development' && (
<div>
<small>
{' '}
(Simulated during dev for better perf)
</small>
</div>
)}
</small>
</em>
</div>