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> </li>
{isDetailPage && ( {isDetailPage && (
<li className="nav-item"> <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])}> <OverlayTrigger placement="right" overlay={<Tooltip id="tooltip-rightTutorialMenu">Tutorial menu</Tooltip>}>
<i className="fas fa-bars" /> <Link className="btn" to={`/list?id=${entity.id}`} onClick={() => (window as any)._paq.push(['trackEvent', 'learneth', 'back_to_menu_step', entity && entity.name])}>
</Link> <i className="fas fa-bars" />
</Link>
</OverlayTrigger>
</li> </li>
)} )}
</ul> </ul>

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

Loading…
Cancel
Save