fix(mobile): resolve all TypeScript errors from integration
- Fix voiceStore method names (toggleMic, leaveVoice, setCurrentVoiceChannel) - Fix MemberWithUser nested user property access - Pass required channelId props to MessageList, TypingIndicator, MessageInput - Fix ConfirmDialog props (isOpen, description, variant, onClose) - Add mobileStyle prop to Modal component (fullscreen + sheet modes) - Fix fromId/isAdmin camelCase property names - Guard possibly undefined touch events and array accesses - Fix notification channelId resolution
This commit is contained in:
@@ -19,6 +19,7 @@ export function useSwipeGesture({
|
||||
const handleTouchStart = useCallback((e: TouchEvent) => {
|
||||
if (!enabled) return;
|
||||
const touch = e.touches[0];
|
||||
if (!touch) return;
|
||||
if (touch.clientX <= edgeThreshold) {
|
||||
touchStartRef.current = { x: touch.clientX, y: touch.clientY };
|
||||
swipingRef.current = false;
|
||||
@@ -28,6 +29,7 @@ export function useSwipeGesture({
|
||||
const handleTouchMove = useCallback((e: TouchEvent) => {
|
||||
if (!touchStartRef.current) return;
|
||||
const touch = e.touches[0];
|
||||
if (!touch) return;
|
||||
const dx = touch.clientX - touchStartRef.current.x;
|
||||
const dy = touch.clientY - touchStartRef.current.y;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user