MCPcopy Index your code
hub / github.com/simstudioai/sim / updateIndicator

Function updateIndicator

packages/emcn/src/components/modal/modal.tsx:402–411  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

400 if (!list) return
401
402 const updateIndicator = () => {
403 const activeTab = list.querySelector('[data-state="active"]') as HTMLElement | null
404 if (!activeTab) return
405
406 setIndicator({
407 left: activeTab.offsetLeft,
408 width: activeTab.offsetWidth,
409 })
410 setReady(true)
411 }
412
413 updateIndicator()
414

Callers 1

modal.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected