Skip to content

SocialAuthButtons.vue (Line 12) #4

Description

@remarkmacasieb04

The props variable is declared but never used in the template or script.

Fix: Remove the variable assignment and access props directly through the defineProps call:

<script setup lang="ts">
import { Link, usePage } from '@inertiajs/vue3';
import { computed } from 'vue';
import SocialProviderIcon from '@/components/crm/SocialProviderIcon.vue';
import type { SocialProviderOption } from '@/types';

type Props = {
    compact?: boolean;
    prefix?: string;
};

withDefaults(defineProps<Props>(), {
    compact: false,
    prefix: 'Continue with',
});

const page = usePage();
const socialProviders = computed(
    () => (page.props.socialProviders ?? []) as SocialProviderOption[],
);
</script>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions