Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const BattleArena = lazy(() => import("./pages/BattleArena").then(m => ({ de
const RaceTrack = lazy(() => import("./pages/RaceTrack").then(m => ({ default: m.RaceTrack })));
const FramePreview = lazy(() => import("./pages/FramePreview").then(m => ({ default: m.FramePreview })));
const Missions = lazy(() => import("./pages/Missions").then(m => ({ default: m.Missions })));
const FlashCourier = lazy(() => import("./pages/FlashCourier").then(m => ({ default: m.FlashCourier })));
const Workshop = lazy(() => import("./pages/Workshop").then(m => ({ default: m.Workshop })));
const UserProfile = lazy(() => import("./pages/UserProfile").then(m => ({ default: m.UserProfile })));
const Leaderboard = lazy(() => import("./pages/Leaderboard").then(m => ({ default: m.Leaderboard })));
Expand Down Expand Up @@ -405,6 +406,9 @@ function LegacyRoutes() {
<Route path="/missions" element={
<ProtectedRoute><Missions /></ProtectedRoute>
} />
<Route path="/flash-courier" element={
<ProtectedRoute><FlashCourier /></ProtectedRoute>
} />
<Route path="/joustur" element={
<ProtectedRoute><JousturGate><JousturHome /></JousturGate></ProtectedRoute>
} />
Expand Down
3 changes: 2 additions & 1 deletion src/components/LanguageProfilePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import type { CraftlinguaEnvelope } from "../lib/types";
import { CRAFTLINGUA_ENABLED } from "../lib/craftlingua";

export function LanguageProfilePanel() {
if (!CRAFTLINGUA_ENABLED) return null;
const { profile, vocabulary, useCraftlingua, loadProfile, clearProfile, setUseCraftlingua } = useLanguage();
const { tier, openUpgradeModal } = useTier();
const canUseCraftlingua = TIERS[tier].canUseCraftlingua;
Expand Down Expand Up @@ -69,6 +68,8 @@ export function LanguageProfilePanel() {
}
}, [pasteText, applyProfile]);

if (!CRAFTLINGUA_ENABLED) return null;

// ── Locked state (free tier) ─────────────────────────────────────────────────

if (!canUseCraftlingua) {
Expand Down
Loading