chore: cleanup reexports
This commit is contained in:
@@ -28,9 +28,6 @@ import type {
|
||||
SignInRequest,
|
||||
} from "./types";
|
||||
|
||||
// Re-export for back-compat with existing `import { ApiError } from "@/api/client"`.
|
||||
export { ApiError };
|
||||
|
||||
interface ApiClientConfig {
|
||||
baseUrl: string;
|
||||
getToken: () => string | null;
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { useCallback, useEffect, useEffectEvent, useRef, useState } from "react";
|
||||
import { toast } from "sonner";
|
||||
import { useAuthStore } from "@/stores/auth-store";
|
||||
import { QuotaExceededError, useCreateParticle, useCreateStreamParticle } from "@/hooks/use-create-particle";
|
||||
import { useCreateParticle, useCreateStreamParticle } from "@/hooks/use-create-particle";
|
||||
import { QuotaExceededError } from "@/lib/errors";
|
||||
import { isUsageExhausted, useInvalidateNetworkUsage, useNetworkUsage } from "@/hooks/use-network-usage";
|
||||
import { useRecorder } from "@/features/compose/use-recorder";
|
||||
import { useScreenRecorder } from "@/features/compose/use-screen-recorder";
|
||||
|
||||
@@ -10,9 +10,6 @@ import {
|
||||
useInvalidateNetworkUsage,
|
||||
} from "./use-network-usage";
|
||||
|
||||
// Re-export for back-compat with existing `import { QuotaExceededError } from "@/hooks/use-create-particle"`.
|
||||
export { QuotaExceededError };
|
||||
|
||||
interface CreateParticleParams<T extends ParticleType = ParticleType> {
|
||||
// Path to which the new particle will be added as a child
|
||||
path: ParticlePath;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { create } from "zustand";
|
||||
import { signInWithCustomToken, signOut as firebaseSignOut } from "firebase/auth";
|
||||
import { apiClient, ApiError } from "@/api/client";
|
||||
import { apiClient } from "@/api/client";
|
||||
import type { Human } from "@/api/types";
|
||||
import { firebaseAuth } from "@/firebase";
|
||||
import { logError } from "@/lib/errors";
|
||||
import { logError, ApiError } from "@/lib/errors";
|
||||
import { useSessionStore } from "./session-store";
|
||||
|
||||
async function signInToFirebase() {
|
||||
|
||||
Reference in New Issue
Block a user