Removed useless const and imports

This commit is contained in:
Florian Sylvain
2023-02-22 09:41:19 +01:00
parent c782a3b447
commit 25de66ec3d
2 changed files with 2 additions and 8 deletions
+2 -5
View File
@@ -1,12 +1,9 @@
<script setup lang="ts"> <script setup lang="ts">
import { RouterView } from 'vue-router' import { RouterView } from "vue-router"
</script> </script>
<template> <template>
<RouterView /> <RouterView />
</template> </template>
<style scoped> <style scoped></style>
</style>
-3
View File
@@ -2,14 +2,11 @@
import { useSessionStore } from "@/stores/useSessionStore" import { useSessionStore } from "@/stores/useSessionStore"
import { db } from "@/utils/firestore" import { db } from "@/utils/firestore"
import { collection, addDoc, type DocumentData } from "firebase/firestore" import { collection, addDoc, type DocumentData } from "firebase/firestore"
import { ref } from "vue"
import { useRouter } from "vue-router" import { useRouter } from "vue-router"
const router = useRouter() const router = useRouter()
const sessionStore = useSessionStore() const sessionStore = useSessionStore()
const group = ref("")
async function getGroup(): Promise<DocumentData | undefined> { async function getGroup(): Promise<DocumentData | undefined> {
try { try {
return await addDoc(collection(db, "groups"), {}) return await addDoc(collection(db, "groups"), {})