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,4 +1,4 @@
import React, {Dispatch, SetStateAction} from "react";
import {Dispatch, SetStateAction} from "react";
interface CheckBoxProps {
isChecked: boolean;

View File

@@ -1,4 +1,4 @@
import React, {ChangeEvent} from "react";
import {ChangeEvent} from "react";
interface DatePickerProps {
date: string;

View File

@@ -1,4 +1,4 @@
import React, {ChangeEvent, KeyboardEvent, useRef, useState} from "react";
import {ChangeEvent, KeyboardEvent, useRef, useState} from "react";
import AddActionButton from "@/components/form/AddActionButton";
interface InlineAddInputProps {

View File

@@ -1,4 +1,4 @@
import React, {ChangeEvent, Dispatch} from "react";
import {ChangeEvent, Dispatch} from "react";
interface NumberInputProps {
value: number;

View File

@@ -1,7 +1,7 @@
import {storyStates} from "@/lib/models/Story";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faBookOpen, faKeyboard, faMagicWandSparkles, faPalette, faPenNib} from "@fortawesome/free-solid-svg-icons";
import React, {Dispatch, SetStateAction} from "react";
import {Dispatch, SetStateAction} from "react";
export interface RadioBoxValue {
label: string;

View File

@@ -1,4 +1,4 @@
import React, {ChangeEvent} from "react";
import {ChangeEvent} from "react";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {IconDefinition} from "@fortawesome/fontawesome-svg-core";
import {SelectBoxProps} from "@/shared/interface";

View File

@@ -1,4 +1,4 @@
import React, {ChangeEvent} from "react";
import {ChangeEvent} from "react";
import {SelectBoxProps} from "@/shared/interface";
export interface SelectBoxFormProps {

View File

@@ -1,5 +1,5 @@
import {SelectBoxProps} from "@/shared/interface";
import React, {ChangeEvent, Dispatch, SetStateAction} from "react";
import {ChangeEvent, Dispatch, SetStateAction} from "react";
import InputField from "@/components/form/InputField";
import TextInput from "@/components/form/TextInput";

View File

@@ -1,4 +1,4 @@
import React, {ChangeEvent} from "react";
import {ChangeEvent} from "react";
interface TextInputProps {
value: string;

View File

@@ -1,4 +1,4 @@
import React, {ChangeEvent, useEffect, useState} from "react";
import {ChangeEvent, useEffect, useState} from "react";
interface TextAreaInputProps {
value: string;