chore: clean and remove unused UI components and update DotLoader usage

This commit is contained in:
Abhinav Raut
2025-02-23 22:40:09 +05:30
parent ab56d01e22
commit 1a7ee4d8c6
18 changed files with 38 additions and 1984 deletions

View File

@@ -3,6 +3,7 @@ import { Primitive } from 'radix-vue'
import { buttonVariants } from '.'
import { cn } from '@/lib/utils'
import { ref, computed } from 'vue'
import { DotLoader } from '@/components/ui/loader'
const props = defineProps({
variant: { type: null, required: false },
@@ -29,11 +30,7 @@ const computedClass = computed(() => {
:class="computedClass"
:disabled="isLoading || isDisabled"
>
<span v-if="isLoading" class="dot-loader">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</span>
<DotLoader v-if="isLoading" />
<slot v-else />
</Primitive>
</template>