fixes on learneth

pull/4975/head
lianahus 5 months ago
parent 56d388c5ff
commit eadf81f72e
  1. 8
      apps/learneth/src/components/BackButton/index.tsx
  2. 4
      apps/learneth/src/pages/StepDetail/index.tsx

@ -31,9 +31,11 @@ function BackButton({entity}: any) {
</li>
{isDetailPage && (
<li className="nav-item">
<Link className="btn" to={`/list?id=${entity.id}`} title="Tutorial menu" onClick={() => (window as any)._paq.push(['trackEvent', 'learneth', 'back_to_menu_step', entity && entity.name])}>
<i className="fas fa-bars" />
</Link>
<OverlayTrigger placement="right" overlay={<Tooltip id="tooltip-rightTutorialMenu">Tutorial menu</Tooltip>}>
<Link className="btn" to={`/list?id=${entity.id}`} onClick={() => (window as any)._paq.push(['trackEvent', 'learneth', 'back_to_menu_step', entity && entity.name])}>
<i className="fas fa-bars" />
</Link>
</OverlayTrigger>
</li>
)}
</ul>

@ -41,7 +41,7 @@ function StepDetailPage() {
}, [errors, success])
return (
<>
<div className='pb-4'>
<div className="fixed-top">
<div className="bg-light">
<BackButton entity={entity} />
@ -223,7 +223,7 @@ function StepDetailPage() {
)}
</>
)}
</>
</div>
)
}

Loading…
Cancel
Save