add link to docs on console help button (close #908) (#909)

This commit is contained in:
riffrayugo 2018-11-09 16:19:24 +07:00 committed by Shahidh K Muhammed
parent edfde9e68e
commit dc2386ae4e

View File

@ -109,6 +109,7 @@ class Main extends React.Component {
const github = require('./Github.svg'); const github = require('./Github.svg');
const discord = require('./Discord.svg'); const discord = require('./Discord.svg');
const mail = require('./mail.svg'); const mail = require('./mail.svg');
const docs = require('./logo.svg');
const pixHeart = require('./pix-heart.svg'); const pixHeart = require('./pix-heart.svg');
const currentLocation = location.pathname; const currentLocation = location.pathname;
const currentActiveBlock = currentLocation.split('/')[1]; const currentActiveBlock = currentLocation.split('/')[1];
@ -306,6 +307,16 @@ class Main extends React.Component {
<span>Reach out ({'support@hasura.io'})</span> <span>Reach out ({'support@hasura.io'})</span>
</a> </a>
</li> </li>
<li className={'dropdown-item'}>
<a href="https://docs.hasura.io/" target="_blank">
<img
className={'img-responsive'}
src={docs}
alt={'docs'}
/>
<span>Head to docs</span>
</a>
</li>
</div> </div>
</ul> </ul>
</div> </div>