File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { toggleLoggedIn } from '../redux/reducers/slice/appStateSlice';
6
6
import { useDispatch } from 'react-redux' ;
7
7
8
8
import AppContainer from '../containers/AppContainer' ;
9
-
10
9
/**
11
10
* The `App` component is the root component of the React application. It performs an initial check
12
11
* to determine if a user is logged in (not a 'guest') by inspecting local storage, and updates the
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ import createModal from './createModal';
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 @@ -120,6 +120,7 @@ const generateUnformattedCode = (
120
120
121
121
currentComponent . children . forEach ( ( child ) => {
122
122
const newChild = { ...child } ;
123
+ console . log ( { newChild } ) ;
123
124
switch ( child . type ) {
124
125
case 'Component' :
125
126
const component = components . find ( ( c ) => c . id === child . typeId ) ;
@@ -323,7 +324,7 @@ const generateUnformattedCode = (
323
324
? `{${ childElement . stateUsed . compLink } }`
324
325
: `"${ childElement . attributes . compLink } "` ;
325
326
}
326
-
327
+ // NOTE-NOAH. this is hard coded and will interfere with new elements.
327
328
const nestableTags = [
328
329
'h1' ,
329
330
'h2' ,
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ const zipFiles = (state: State): void => {
15
15
// writes a file with default index.html code
16
16
reacTypeApp . file (
17
17
'index.html' ,
18
- '<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <link rel="stylesheet" href="styles.css"> <title>ReacType App</title> </head> <body> <div id="root"></div> </body> </html>' ,
18
+ '<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <link rel="stylesheet" href="styles.css"> <title>ReacType App</title> </head> <body> <div id="root"></div> </body> </html>'
19
19
) ;
20
20
// writes each component as its own file in the component folder
21
21
for ( const i in state . components ) {
22
22
componentFolder . file (
23
23
`${ state . components [ i ] . name } .jsx` ,
24
- state . components [ i ] . code ,
24
+ state . components [ i ] . code
25
25
) ;
26
26
}
27
27
// writes our css file
You can’t perform that action at this time.
0 commit comments