mirror of
https://github.com/abhinavxd/libredesk.git
synced 2025-11-07 23:43:16 +00:00
chore: clean and remove unused UI components and update DotLoader usage
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user