refactor(App): remove dead SDK imports (BUG-17)
App.js imported 9 Firestore SDK functions it never called standalone: doc, setDoc, addDoc, collection, onSnapshot, updateDoc, deleteDoc, query, writeBatch. All writes go through storage adapter (storage.*). Auth pieces (initializeApp, getAuth, signInAnonymously, onAuthStateChanged, signInWithCustomToken, getFirestore) stay — real SDK init in firebase mode. orderBy/limit stay — now neutral builders from index.js (prev commit).
This commit is contained in:
+1
-3
@@ -1,8 +1,6 @@
|
||||
import React, { useState, useEffect, useRef, useMemo } from 'react';
|
||||
import * as shared from '@ttrpg/shared';
|
||||
import { initializeApp } from './storage';
|
||||
import { getAuth, signInAnonymously, onAuthStateChanged, signInWithCustomToken } from './storage';
|
||||
import { getFirestore, doc, setDoc, addDoc, collection, onSnapshot, updateDoc, deleteDoc, query, orderBy, limit, writeBatch, getStorage, getStorageMode } from './storage';
|
||||
import { initializeApp, getAuth, signInAnonymously, onAuthStateChanged, signInWithCustomToken, getFirestore, orderBy, limit, getStorage, getStorageMode } from './storage';
|
||||
import {
|
||||
PlusCircle, Users, Swords, Trash2, Eye, Edit3, Save, XCircle, ChevronsUpDown,
|
||||
UserCheck, UserX, HeartCrack, HeartPulse, Zap, EyeOff, ExternalLink, AlertTriangle,
|
||||
|
||||
Reference in New Issue
Block a user