mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
feat(help): EE-2724 Context sensitive help (#7694)
This commit is contained in:
parent
1b0db4971f
commit
f8b8d549fd
10 changed files with 464 additions and 13 deletions
27
app/react/components/PageHeader/ContextHelp/ContextHelp.tsx
Normal file
27
app/react/components/PageHeader/ContextHelp/ContextHelp.tsx
Normal file
|
@ -0,0 +1,27 @@
|
|||
import { HelpCircle } from 'react-feather';
|
||||
import clsx from 'clsx';
|
||||
|
||||
import { getDocURL } from '@@/PageHeader/ContextHelp/docURLs';
|
||||
|
||||
import './ContextHelp.css';
|
||||
|
||||
export function ContextHelp() {
|
||||
function onHelpClick() {
|
||||
const docURL = getDocURL();
|
||||
window.open(docURL, '_blank');
|
||||
}
|
||||
|
||||
return (
|
||||
<div
|
||||
className={clsx(
|
||||
'menu-icon',
|
||||
'icon-badge text-lg !p-2 mr-1',
|
||||
'text-gray-8',
|
||||
'th-dark:text-gray-warm-7'
|
||||
)}
|
||||
title="Help"
|
||||
>
|
||||
<HelpCircle className="feather" onClick={onHelpClick} />
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue