Skip to content

fix(ui): add missing imports in Home.tsx — useKeyboardShortcuts, SessionTimeout, AnimatePresence, motion, Command#223

Merged
imanchalsingh merged 1 commit into
imanchalsingh:mainfrom
Git-Shubham14:fix/missing-imports-home-tsx
Jul 12, 2026
Merged

fix(ui): add missing imports in Home.tsx — useKeyboardShortcuts, SessionTimeout, AnimatePresence, motion, Command#223
imanchalsingh merged 1 commit into
imanchalsingh:mainfrom
Git-Shubham14:fix/missing-imports-home-tsx

Conversation

@Git-Shubham14

Copy link
Copy Markdown
Contributor

Description

Fixes #216

client/src/components/Home/Home.tsx used 5 components/hooks that were never imported, causing the entire home page to crash with a ReferenceError and show the "Something went wrong" error boundary instead of the actual UI.

Root Cause

The following were used in the component but missing from imports:

  • useKeyboardShortcuts — used at line 44 for keyboard shortcuts
  • SessionTimeout — used at line 183 for session management
  • AnimatePresence — used at line 186 for modal animations
  • motion — used at lines 188, 195, 230, 231 for animations
  • Command — used at line 204 as an icon in the shortcuts modal

Changes

  • client/src/components/Home/Home.tsx — added 4 missing import statements:
import { AnimatePresence, motion } from "framer-motion";
import { Command } from "lucide-react";
import SessionTimeout from "../SessionTimeout";
import { useKeyboardShortcuts } from "../../hooks/useKeyboardShortcuts";

Type of Change

  • Bug fix

Checklist

  • Code follows project style
  • Tested locally — home page loads correctly after fix, no ReferenceErrors
  • Updated documentation

@netlify

netlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

👷 Deploy request for file-sharingsystem pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit ec6f6b5

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

@Git-Shubham14 is attempting to deploy a commit to the imanchalsingh Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the SSoC26 Official label of org label Jul 10, 2026
@github-actions github-actions Bot added bug Something isn't working frontend labels Jul 10, 2026
@imanchalsingh
imanchalsingh merged commit ae0470f into imanchalsingh:main Jul 12, 2026
5 of 6 checks passed
@imanchalsingh imanchalsingh added the Easy Point - 20 label Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Easy Point - 20 frontend SSoC26 Official label of org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Missing imports in Home.tsx — useKeyboardShortcuts, SessionTimeout, AnimatePresence, motion, Command not imported

2 participants