Update imports and Electron compatibility

- Removed unnecessary React imports.
- Adjusted package.json scripts for Electron integration.
- Updated components to replace Next.js-specific imports with Electron-compatible alternatives.
- Minor tsconfig.json changes for better compatibility.
This commit is contained in:
natreex
2025-11-16 11:55:52 -05:00
parent 8167948881
commit c9cf99e166
72 changed files with 237 additions and 127 deletions

View File

@@ -1,6 +1,6 @@
'use client';
import React from 'react';
import {useEffect, useState} from 'react';
import {createPortal} from 'react-dom';
import StaticAlert from '@/components/StaticAlert';
import {Alert} from '@/context/AlertProvider';
@@ -11,9 +11,9 @@ interface AlertStackProps {
}
export default function AlertStack({alerts, onClose}: AlertStackProps) {
const [mounted, setMounted] = React.useState(false);
const [mounted, setMounted] = useState(false);
React.useEffect(() => {
useEffect(() => {
setMounted(true);
return () => setMounted(false);
}, []);
@@ -38,7 +38,7 @@ export default function AlertStack({alerts, onClose}: AlertStackProps) {
/>
</div>
))}
<style jsx>{`
<style>{`
@keyframes slideInFromRight {
from {
transform: translateX(400px);