Skip to content

Commit 1de19b5

Browse files
committed
going to update stuff, but we are not broken at least now
1 parent a946218 commit 1de19b5

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

app/src/components/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { toggleLoggedIn } from '../redux/reducers/slice/appStateSlice';
66
import { useDispatch } from 'react-redux';
77

88
import AppContainer from '../containers/AppContainer';
9-
109
/**
1110
* The `App` component is the root component of the React application. It performs an initial check
1211
* to determine if a user is logged in (not a 'guest') by inspecting local storage, and updates the

app/src/components/right/ExportButton.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ import createModal from './createModal';
1111
import { RootState } from '../../redux/store';
1212
import zipFiles from '../../helperFunctions/zipFiles';
1313

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+
1417
/**
1518
* Renders an export button that triggers a modal for selecting export options.
1619
* The button and modal allow users to export project components in various formats.

app/src/helperFunctions/generateCode.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ const generateUnformattedCode = (
120120

121121
currentComponent.children.forEach((child) => {
122122
const newChild = { ...child };
123+
console.log({ newChild });
123124
switch (child.type) {
124125
case 'Component':
125126
const component = components.find((c) => c.id === child.typeId);
@@ -323,7 +324,7 @@ const generateUnformattedCode = (
323324
? `{${childElement.stateUsed.compLink}}`
324325
: `"${childElement.attributes.compLink}"`;
325326
}
326-
327+
// NOTE-NOAH. this is hard coded and will interfere with new elements.
327328
const nestableTags = [
328329
'h1',
329330
'h2',

app/src/helperFunctions/zipFiles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ const zipFiles = (state: State): void => {
1515
// writes a file with default index.html code
1616
reacTypeApp.file(
1717
'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>'
1919
);
2020
// writes each component as its own file in the component folder
2121
for (const i in state.components) {
2222
componentFolder.file(
2323
`${state.components[i].name}.jsx`,
24-
state.components[i].code,
24+
state.components[i].code
2525
);
2626
}
2727
// writes our css file

0 commit comments

Comments
 (0)