@@ -8,7 +8,7 @@ import { Code } from "@/components/code"
88import { InputWithPrefix } from "@/components/input-prefix"
99import { Button } from "@/components/ui/button"
1010import { Label } from "@/components/ui/label"
11- import { Progress } from "@/components/ui/progress"
11+ import { Progress , ProgressIndicator , ProgressTrack } from "@/components/ui/progress"
1212import { Tooltip , TooltipContent , TooltipTrigger } from "@/components/ui/tooltip"
1313import { useLocalStorage } from "@/hooks/use-local-storage"
1414import { auth , useSession } from "@/lib/auth"
@@ -143,8 +143,8 @@ export function TelegramLink({ botUsername }: { botUsername: string }) {
143143 < Timer ttl = { savedLink . ttl } timeLeft = { timeLeft } onEnd = { ( ) => setExpired ( true ) } />
144144
145145 < div className = "flex items-center gap-2" >
146- < Tooltip delayDuration = { 0 } >
147- < TooltipTrigger asChild >
146+ < Tooltip >
147+ < TooltipTrigger delay = { 0 } >
148148 < Button variant = "outline" >
149149 < a aria-label = "open telegram bot" href = { `tg://resolve?domain=${ botUsername } ` } >
150150 Start the bot
@@ -211,11 +211,11 @@ function Timer({ ttl, timeLeft: pTimeLeft, onEnd }: { ttl: number; timeLeft: num
211211
212212 return (
213213 < >
214- < Progress
215- value = { percentage }
216- className = "h-2 w-64"
217- indicatorClassname = { timeLeft < 31_000 ? "bg-red-600 dark:bg-red-400" : "bg-primary" }
218- / >
214+ < Progress value = { percentage } className = "h-2 w-64" >
215+ < ProgressTrack >
216+ < ProgressIndicator className = { timeLeft < 31_000 ? "bg-red-600 dark:bg-red-400" : "bg-primary" } />
217+ </ ProgressTrack >
218+ </ Progress >
219219 < span className = "text-foreground/70 text-sm" >
220220 Time left:
221221 < span className = "inline-block w-10 text-end" > { Math . floor ( timeLeft / 1000 ) } s</ span >
0 commit comments