File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { toggleLoggedIn } from '../redux/reducers/slice/appStateSlice';
5
5
import { useDispatch } from 'react-redux' ;
6
6
7
7
import AppContainer from '../containers/AppContainer' ;
8
-
9
8
/**
10
9
* The `App` component is the root component of the React application. It performs an initial check
11
10
* to determine if a user is logged in (not a 'guest') by inspecting local storage, and updates the
@@ -15,7 +14,7 @@ import AppContainer from '../containers/AppContainer';
15
14
* The `useEffect` hook is used to perform the login check once on component mount, ensuring that
16
15
* the login state is correctly set based on the presence of a specific item in local storage.
17
16
*
18
- * @returns {JSX.Element } Renders the `AppContainer` wrapped within a div with a class of 'app',
17
+ * @returns {JSX.Element } Renders the `AppContainer` wrapped within a div with a class of 'app',
19
18
* serving as the root of the user interface.
20
19
*
21
20
* This component interacts with Redux by dispatching actions to modify the global state, particularly
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ import { useSelector } from 'react-redux';
11
11
import { RootState } from '../../redux/store' ;
12
12
import zipFiles from '../../helperFunctions/zipFiles' ;
13
13
14
+ // NOTE: from the v22 team, this file is unused, if you are editing this and nothing is changing.
15
+ // dont say I did not warn you.
16
+
14
17
/**
15
18
* Renders an export button that triggers a modal for selecting export options.
16
19
* The button and modal allow users to export project components in various formats.
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ const generateUnformattedCode = (
119
119
120
120
currentComponent . children . forEach ( ( child ) => {
121
121
const newChild = { ...child } ;
122
+ console . log ( { newChild } ) ;
122
123
switch ( child . type ) {
123
124
case 'Component' :
124
125
const component = components . find ( ( c ) => c . id === child . typeId ) ;
@@ -324,7 +325,7 @@ const generateUnformattedCode = (
324
325
? `{${ childElement . stateUsed . compLink } }`
325
326
: `"${ childElement . attributes . compLink } "` ;
326
327
}
327
-
328
+ // NOTE-NOAH. this is hard coded and will interfere with new elements.
328
329
const nestableTags = [
329
330
'h1' ,
330
331
'h2' ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { State } from '../interfaces/Interfaces';
7
7
* @param {State } state - The current state of the project.
8
8
*/
9
9
const zipFiles = ( state : State ) : void => {
10
+ console . log ( 'zipping those files...' ) ;
10
11
//initializes zip
11
12
var zip = new JSZip ( ) ;
12
13
let reacTypeApp = zip . folder ( 'ReacTypeApp' ) ;
@@ -19,6 +20,7 @@ const zipFiles = (state: State): void => {
19
20
) ;
20
21
//writes each component as its own file in the component folder
21
22
for ( let i in state . components ) {
23
+ console . log ( state . components [ i ] ) ;
22
24
componentFolder . file (
23
25
`${ state . components [ i ] . name } .jsx` ,
24
26
state . components [ i ] . code
You can’t perform that action at this time.
0 commit comments