Skip to content

fix: fix errors and repetitive variable declarations in page.tsx (#93)#114

Open
naina-bhatnagar wants to merge 2 commits into
Debmallya-03:mainfrom
naina-bhatnagar:fix-page-tsx
Open

fix: fix errors and repetitive variable declarations in page.tsx (#93)#114
naina-bhatnagar wants to merge 2 commits into
Debmallya-03:mainfrom
naina-bhatnagar:fix-page-tsx

Conversation

@naina-bhatnagar
Copy link
Copy Markdown

@naina-bhatnagar naina-bhatnagar commented May 24, 2026

Description

Fixed compilation failures and structural bugs in CodeEditor caused by duplicate code blocks and corrupted merge artifacts.

Key Changes

Resolved Redeclarations: Removed duplicate definitions of containerRef, previewRef, isMobile, and workspace drag handlers (handleDragStart, handleDragMove, etc.).

Cleaned States: Eliminated a redundant isMobile state hook.

Deduplicated Templates: Cleaned up overlapping keys and redundant objects inside the templates array.

Results

All TypeScript and linter errors are resolved.
I ran npm run dev and the wesite doesnt throw any errors now !

now the users can access the website and will not see any backend crashes

closes #93

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 24, 2026

@naina-bhatnagar is attempting to deploy a commit to the debmallya-03's projects Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 24, 2026

Deploy Preview for webifynet ready!

Name Link
🔨 Latest commit 835ca99
🔍 Latest deploy log https://app.netlify.com/projects/webifynet/deploys/6a133e630b9bf40008889947
😎 Deploy Preview https://deploy-preview-114--webifynet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix: Fix duplicate declarations, undefined isMobile, and JSX attribute errors in page.tsx

1 participant