mobilizon.chapril.org-mobil.../js/src/components/User/AuthProviders.vue
Thomas Citharel ee20e03cc2
Migrate to Vue 3 and Vite
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-08-11 16:46:31 +02:00

24 lines
537 B
Vue

<template>
<div>
<b>{{ t("Sign in with") }}</b>
<div class="flex gap-1 flex-wrap">
<auth-provider
v-for="provider in oauthProviders"
:oauthProvider="provider"
:key="provider.id"
/>
</div>
</div>
</template>
<script lang="ts" setup>
import { useI18n } from "vue-i18n";
import { IOAuthProvider } from "@/types/config.model";
import AuthProvider from "./AuthProvider.vue";
defineProps<{
oauthProviders: IOAuthProvider[];
}>();
const { t } = useI18n({ useScope: "global" });
</script>