File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 11import React , { useState , useEffect , useMemo } from 'react'
2+ import { CustomTooltip } from "@remix-ui/helper"
23import { Link } from 'react-router-dom'
34import { useAppSelector } from '../../redux/hooks'
45import RepoImporter from '../../components/RepoImporter'
@@ -184,7 +185,12 @@ function HomePage(): JSX.Element {
184185 < Antenna level = { r . levelNum } />
185186 < span className = "small fw-medium text-body-emphasis" > { r . levelText } </ span >
186187 { completedTutorials [ r . id ] && (
187- < i className = "text-success ms-2 fas fa-check" > </ i >
188+ < CustomTooltip
189+ placement = { "auto" }
190+ tooltipId = "tutorialCompletedTooltip"
191+ tooltipClasses = "text-nowrap"
192+ tooltipText = { < span > { 'Completed' } </ span > }
193+ > < i className = "text-success ms-2 fas fa-check" > </ i > </ CustomTooltip >
188194 ) }
189195 </ div >
190196 < MetaRight stepsLen = { r . stepsLen } duration = { r . duration } />
Original file line number Diff line number Diff line change 11import React , { useMemo , useState , useEffect } from 'react'
2+ import { CustomTooltip } from "@remix-ui/helper"
23import { Link , useLocation , useNavigate } from 'react-router-dom'
34import ReactMarkdown from 'react-markdown'
45import remarkGfm from 'remark-gfm'
@@ -104,9 +105,14 @@ export default function StepListPage(): JSX.Element {
104105 < div className = "container-fluid" >
105106 < article className = "card course-hero mb-3 border border-secondary" >
106107 < div className = "card-body" >
107- { entity ?. id && completedTutorials [ entity ?. id ] && (
108- < span className = "badge bg-success float-end" > Finished</ span >
109- ) }
108+ { entity ?. id && completedTutorials [ entity ?. id ] && (
109+ < CustomTooltip
110+ placement = { "auto" }
111+ tooltipId = "tutorialCompletedTooltip"
112+ tooltipClasses = "text-nowrap"
113+ tooltipText = { < span > { 'Completed' } </ span > }
114+ > < span className = "badge bg-success float-end" > Completed</ span > </ CustomTooltip >
115+ ) }
110116 < h2 className = "h4 mb-2" > { entity ?. name } </ h2 >
111117 < div className = { `description-wrapper ${ ! isExpanded && needsExpansionButton ? 'truncated' : '' } ` } >
112118 < ReactMarkdown
You can’t perform that action at this time.
0 commit comments