Skip to content

Commit

Permalink
Added a button that links to the documentation site
Browse files Browse the repository at this point in the history
  • Loading branch information
JazzMina88 committed Jun 29, 2022
1 parent 1e61de4 commit 928d045
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React from 'react';
import { connect } from 'react-redux';
import { authenticationActions } from '../../redux/ducks/authentication';
import Router from 'next/router';

import { Toolbar } from 'primereact/toolbar';
import { Button } from 'primereact/button';
import { linkPrefix } from '../../lib/configuration';
import 'primeicons/primeicons.css';

/**
* The application's menu bar.
Expand All @@ -17,6 +17,9 @@ class Menubar extends React.Component {
};

render() {
const handleClick = () => {
window.open('https://inspectit.github.io/inspectit-ocelot/docs/doc1');
};
return (
<Toolbar id="toolbar">
<style global jsx>{`
Expand Down Expand Up @@ -50,11 +53,19 @@ class Menubar extends React.Component {
.user-description b {
color: #fff;
}
.question-mark {
margin-top: -0.8rem;
color: #fff;
font-size: 1rem;
}
`}</style>
<div className="p-toolbar-group-left flex-v-center">
<img className="ocelot-head" src={linkPrefix + '/static/images/inspectit-ocelot-head.svg'} />
<div className="ocelot-text">inspectIT Ocelot</div>
</div>
<div className="question-mark">
<p className="pi pi-info-circle" onClick={handleClick}></p>
</div>
<div className="p-toolbar-group-right flex-v-center">
<div className="user-description">
Logged in as <b>{this.props.username}</b>
Expand Down

0 comments on commit 928d045

Please sign in to comment.