⚠️ refactor (form): refactor label component for improved styling and responsiveness
This commit is contained in:
@@ -34,7 +34,7 @@ const [useProvideCarousel, useInjectCarousel] = createInjectionState(
|
||||
|
||||
onMounted(() => {
|
||||
if (!emblaApi.value)
|
||||
return
|
||||
{ return }
|
||||
|
||||
emblaApi.value?.on('init', onSelect)
|
||||
emblaApi.value?.on('reInit', onSelect)
|
||||
@@ -51,7 +51,7 @@ function useCarousel() {
|
||||
const carouselState = useInjectCarousel()
|
||||
|
||||
if (!carouselState)
|
||||
throw new Error('useCarousel must be used within a <Carousel />')
|
||||
{ throw new Error('useCarousel must be used within a <Carousel />') }
|
||||
|
||||
return carouselState
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user