|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
import { faCaretDown, faCaretRight } from "@fortawesome/free-solid-svg-icons"; |
|
|
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; |
|
|
|
|
import React, { } from "react"; |
|
|
|
|
import { pluginActionsContext } from "../../state/context"; |
|
|
|
|
import { faCaretDown, faCaretRight } from "@fortawesome/free-solid-svg-icons" |
|
|
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" |
|
|
|
|
import React, { } from "react" |
|
|
|
|
import { pluginActionsContext } from "../../state/context" |
|
|
|
|
|
|
|
|
|
export const GitHubNavigation = ({ eventKey, activePanel, callback }) => { |
|
|
|
|
const pluginactions = React.useContext(pluginActionsContext) |
|
|
|
@ -18,12 +18,10 @@ export const GitHubNavigation = ({ eventKey, activePanel, callback }) => { |
|
|
|
|
<> |
|
|
|
|
<div className={'d-flex justify-content-between pt-1 pb-1 ' + (activePanel === eventKey? 'bg-light': '')}> |
|
|
|
|
<span data-id='github-panel' onClick={()=>handleClick()} role={'button'} className='nav d-flex justify-content-start align-items-center w-75'> |
|
|
|
|
{ |
|
|
|
|
activePanel === eventKey ? <FontAwesomeIcon className='' icon={faCaretDown}></FontAwesomeIcon> : <FontAwesomeIcon className='' icon={faCaretRight}></FontAwesomeIcon> |
|
|
|
|
} |
|
|
|
|
<label className="pl-1 nav form-check-label">GITHUB SETUP</label> |
|
|
|
|
<i className={ activePanel !== eventKey ? "fa fa-caret-right" : "fa fa-caret-down" }></i> |
|
|
|
|
<label className="pl-2 nav form-check-label">GITHUB SETUP</label> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
</> |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|