fix(types): unblock CI typecheck on Dev

Two pre-existing tsgo failures surfaced by the loading-screen redesign PR:

1. AvatarEffectsView: import loadGamedata via the umbrella
   `@nitrots/nitro-renderer` instead of `@nitrots/utils`. The deep
   sub-package alias only exists in vite.config.mjs; tsgo resolves
   against node_modules, where only the umbrella is symlinked. Same
   symbol — index.ts re-exports `* from '@nitrots/utils'`.

2. DraggableWindow: `useRef<HTMLDivElement>()` -> `useRef<HTMLDivElement>(null)`.
   React 19 typings now require an initial value. Fixed once in
   a39aa37, re-introduced by the merge in 03bebe4.
This commit is contained in:
medievalshell
2026-05-21 00:31:14 +02:00
parent c685c997a3
commit c170eb0a5b
2 changed files with 2 additions and 3 deletions
@@ -1,5 +1,4 @@
import { AddLinkEventTracker, AvatarDirectionAngle, AvatarEffectActivatedComposer, GetConfiguration, GetSessionDataManager, ILinkEventTracker, RemoveLinkEventTracker } from '@nitrots/nitro-renderer';
import { loadGamedata } from '@nitrots/utils';
import { AddLinkEventTracker, AvatarDirectionAngle, AvatarEffectActivatedComposer, GetConfiguration, GetSessionDataManager, ILinkEventTracker, loadGamedata, RemoveLinkEventTracker } from '@nitrots/nitro-renderer';
import { ChangeEvent, FC, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { FaChevronLeft, FaChevronRight, FaSearch } from 'react-icons/fa';
import { LocalizeText, SendMessageComposer } from '../../api';